函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:bool queue_work_node(int node, struct workqueue_struct *wq, struct work_struct *work)

返回类型:bool

参数:

类型参数名称
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  如果非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).
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  返回:ret
调用者
名称描述
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