函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kthread.c Create Date:2022-07-27 10:30:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:sert @work before @pos in @worker

函数原型:static void kthread_insert_work(struct kthread_worker *worker, struct kthread_work *work, struct list_head *pos)

返回类型:void

参数:

类型参数名称
struct kthread_worker *worker
struct kthread_work *work
struct list_head *pos
798  kthread_insert_work_sanity_check(worker, work)
800  添加链表项
801  worker等于worker
802  如果非current_work此条件成立可能性大(为编译器优化)(task)则唤醒中断线程
调用者
名称描述
kthread_queue_workkthread_queue_work - queue a kthread_work*@worker: target kthread_worker*@work: kthread_work to queue* Queue @work to work processor @task for async execution. @task* must have been created with kthread_worker_create(). Returns %true
kthread_delayed_work_timer_fnkthread_delayed_work_timer_fn - callback that queues the associated kthread* delayed work when the timer expires.*@t: pointer to the expired timer* The format of the function is defined by struct timer_list.
__kthread_queue_delayed_work
kthread_flush_workkthread_flush_work - flush a kthread_work*@work: work to flush* If @work is queued or executing, wait for it to finish execution.