You will need another separate polling thread, which will get notified by the first thread when to schedule a tasklet.
需要另外一个单独的轮询线程,在调度 tasklet 时,第一个线程会通知它。
When the module is unloaded, the tasklet_kill function is called to ensure that the tasklet is not in a schedulable state.
当该模块被卸载,函数tasklet _ kill将被调用来保证微线程不处于可调度状态。
Finally, after a tasklet has been created, it's possible to stop a tasklet through the tasklet_kill functions (see Listing 4).
最后,微线程生成之后,就可以通过函数tasklet _ kill来停止微线程(参见清单4)。
应用推荐