Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:queue_work_node - queue work on a "random" cpu for a given NUMA node*@node: NUMA node that we are targeting the work for*@wq: workqueue to use*@work: work to queue* We queue the work to a "random" CPU within a given NUMA node

Proto:bool queue_work_node(int node, struct workqueue_struct *wq, struct work_struct *work)

Type:bool

Parameter:

TypeParameterName
intnode
struct workqueue_struct *wq
struct work_struct *work
1579  bool ret = false
1590  WARN_ON_ONCE(!(hot fields used during command issue, aligned to cacheline & WQ_UNBOUND))
1592  local_irq_save(flags)
1594  If Not st_and_set_bit - Set a bit and return its old value*@nr: Bit to set*@addr: Address to count from* This is an atomic fully-ordered operation (implied full memory barrier). Then
1595  cpu = workqueue_select_cpu_near - Select a CPU based on NUMA node*@node: NUMA node ID that we want to select a CPU from* This function will attempt to find a "random" cpu available on a given* node
1597  __queue_work(cpu, wq, work)
1598  ret = true
1601  local_irq_restore(flags)
1602  Return ret
Caller
NameDescribe
async_schedule_node_domainasync_schedule_node_domain - NUMA specific version of async_schedule_domain*@func: function to execute asynchronously*@data: data pointer to pass to the function*@node: NUMA node that we want to schedule this on or close to*@domain: the domain