Function report |
Source Code:kernel\kthread.c |
Create Date:2022-07-28 09:30:35 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:kthread_flush_work - flush a kthread_work*@work: work to flush* If @work is queued or executing, wait for it to finish execution.
Proto:void kthread_flush_work(struct kthread_work *work)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct kthread_work * | work |
953 | struct kthread_flush_work fwork = {KTHREAD_WORK_INIT(work, kthread_flush_work_fn), COMPLETION_INITIALIZER_ONSTACK(done), } |
958 | bool noop = false |
961 | If Not worker Then Return |
964 | raw_spin_lock_irq( & lock) |
966 | WARN_ON_ONCE(worker != worker) |
968 | If Not list_empty - tests whether a list is empty*@head: the list to test. Then sert @work before @pos in @worker |
970 | Else if current_work == work Then sert @work before @pos in @worker |
973 | Else noop = true |
976 | raw_spin_unlock_irq( & lock) |
978 | If Not noop Then wait_for_completion( & done) |
Name | Describe |
---|---|
__kthread_cancel_work_sync |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |