Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:stall @pwq into @wq's numa_pwq_tbl[] for @node and return the old pwq

Proto:static struct pool_workqueue *numa_pwq_tbl_install(struct workqueue_struct *wq, int node, struct pool_workqueue *pwq)

Type:struct pool_workqueue

Parameter:

TypeParameterName
struct workqueue_struct *wq
intnode
struct pool_workqueue *pwq
3850  lockdep_assert_held( & wq_pool_mutex)
3851  lockdep_assert_held( & protects this wq )
3854  sync @pwq with the current state of its associated wq and link it
3856  old_pwq = cu_access_pointer() - fetch RCU pointer with no dereferencing*@p: The pointer to read* Return the value of the specified RCU-protected pointer, but omit the* lockdep checks for being in an RCU read-side critical section(PWR: unbound pwqs indexed by node [node])
3857  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization(PWR: unbound pwqs indexed by node [node], pwq)
3858  Return old_pwq
Caller
NameDescribe
apply_wqattrs_commitset attrs and install prepared pwqs, @ctx points to old pwqs on return
wq_update_unbound_numawq_update_unbound_numa - update NUMA affinity of a wq for CPU hot[un]plug*@wq: the target workqueue*@cpu: the CPU coming up or going down*@online: whether @cpu is coming up or going down* This function is to be called from %CPU_DOWN_PREPARE, %CPU_ONLINE