Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\workqueue.c Create Date:2022-07-28 09:23:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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)

Proto:static inline void worker_clr_flags(struct worker *worker, unsigned int flags)

Type:void

Parameter:

TypeParameterName
struct worker *worker
unsigned intflags
972  pool = A: the associated pool
973  oflags = X: flags
975  WARN_ON_ONCE(I: worker task != current process)
977  X: flags &= ~flags
984  If flags & WORKER_NOT_RUNNING && oflags & WORKER_NOT_RUNNING Then If Not (X: flags & WORKER_NOT_RUNNING) Then
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.)
Caller
NameDescribe
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