函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:worker_set_flags - set worker flags and adjust nr_running accordingly*@worker: self*@flags: flags to set* Set @flags in @worker->flags and adjust nr_running accordingly.* CONTEXT:* spin_lock_irq(pool->lock)

函数原型:static inline void worker_set_flags(struct worker *worker, unsigned int flags)

返回类型:void

参数:

类型参数名称
struct worker *worker
unsigned intflags
947  pool等于A: the associated pool
949  WARN_ON_ONCE(I: worker task != 当前进程)
952  如果flags按位与WORKER_NOT_RUNNING且非X: flags 按位与WORKER_NOT_RUNNING的值则
954  atomic_dec( & The current concurrency level. As it's likely to be accessed* from other CPUs during try_to_wake_up(), put it in a separate* cacheline.)
957  X: flags 或等于flags
调用者
名称描述
process_one_workprocess_one_work - process single work*@worker: self*@work: work to process* Process @work
worker_thread