函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

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

返回类型:void

参数:

类型参数名称
struct worker *worker
unsigned intflags
972  pool等于A: the associated pool
973  oflags等于X: flags
975  WARN_ON_ONCE(I: worker task != 当前进程)
977  X: flags 与等于flags的反
984  如果flags按位与WORKER_NOT_RUNNINGoflags按位与WORKER_NOT_RUNNING则如果非X: flags 按位与WORKER_NOT_RUNNING的值则
986  atomic_inc( & 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.)
调用者
名称描述
worker_leave_idleworker_leave_idle - leave idle state*@worker: worker which is leaving idle state*@worker is leaving idle state. Update stats.* LOCKING:* spin_lock_irq(pool->lock).
process_one_workprocess_one_work - process single work*@worker: self*@work: work to process* Process @work
worker_thread