Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

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

Type:void

Parameter:

TypeParameterName
struct worker *worker
unsigned intflags
947  pool = A: the associated pool
949  WARN_ON_ONCE(I: worker task != current process)
952  If flags & WORKER_NOT_RUNNING && Not (X: flags & WORKER_NOT_RUNNING) Then
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
Caller
NameDescribe
process_one_workprocess_one_work - process single work*@worker: self*@work: work to process* Process @work
worker_thread