Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sert_wq_barrier - insert a barrier work*@pwq: pwq to insert barrier into*@barr: wq_barrier to insert*@target: target work to attach @barr to*@worker: worker currently executing @target, NULL if @target is not executing*@barr is linked to @target such that

Proto:static void insert_wq_barrier(struct pool_workqueue *pwq, struct wq_barrier *barr, struct work_struct *target, struct worker *worker)

Type:void

Parameter:

TypeParameterName
struct pool_workqueue *pwq
struct wq_barrier *barr
struct work_struct *target
struct worker *worker
2650  linked = 0
2658  INIT_WORK_ONSTACK( & work, wq_barrier_func)
2659  __set_bit - Set a bit in memory*@nr: the bit to set*@addr: the address to start counting from* Unlike set_bit(), this function is non-atomic. If it is called on the same* region of memory concurrently, the effect may be that only one operation* succeeds.
2661  init_completion_map( & done, & lockdep_map)
2663  purely informational = current process
2669  If worker Then head = next
2671  Else
2672  bits = The first word is the work queue pointer and the flags rolled into* one(target)
2674  head = next
2676  linked = bits & WORK_STRUCT_LINKED
2677  __set_bit - Set a bit in memory*@nr: the bit to set*@addr: the address to start counting from* Unlike set_bit(), this function is non-atomic. If it is called on the same* region of memory concurrently, the effect may be that only one operation* succeeds.
2680  debug_work_activate( & work)
2681  sert_work - insert a work into a pool*@pwq: pwq @work belongs to*@work: work to insert*@head: insertion point*@extra_flags: extra WORK_STRUCT_* flags to set* Insert @work which belongs to @pwq after @head
Caller
NameDescribe
start_flush_work