Home
last modified time | relevance | path

Searched refs:KTHREAD_SHOULD_STOP (Results 1 – 2 of 2) sorted by relevance

/DragonOS-0.1.2/docs/kernel/process_management/
Dkthread.md13 …要停止一个内核线程的时候,可以调用`kthread_stop()`函数。该函数将会置位内核线程的`worker_private`中的`KTHREAD_SHOULD_STOP`标志位,并等待内核线程…
15   内核线程应当经常检查`KTHREAD_SHOULD_STOP`标志位,以确定其是否要退出。当检测到该标志位被置位时,内核线程应当完成数据清理工作,并调用`kthread_ex…
/DragonOS-0.1.2/kernel/src/process/
Dkthread.c16 KTHREAD_SHOULD_STOP, enumerator
184 if (!(self->flags & (1 << KTHREAD_SHOULD_STOP))) in kthread()
251 if (self->flags & (1 << KTHREAD_SHOULD_STOP)) in kthread_should_stop()
267 target->flags |= (1 << KTHREAD_SHOULD_STOP); in kthread_stop()