Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:btain a pool matching @attr and create a pwq associating the pool and @wq

Proto:static struct pool_workqueue *alloc_unbound_pwq(struct workqueue_struct *wq, const struct workqueue_attrs *attrs)

Type:struct pool_workqueue

Parameter:

TypeParameterName
struct workqueue_struct *wq
const struct workqueue_attrs *attrs
3775  lockdep_assert_held( & wq_pool_mutex)
3777  pool = get_unbound_pool - get a worker_pool with the specified attributes*@attrs: the attributes of the worker_pool to get* Obtain a worker_pool which has the same attributes as @attrs, bump the* reference count and return it
3778  If Not pool Then Return NULL
3781  pwq = kmem_cache_alloc_node(pwq_cache, GFP_KERNEL, I: the associated node ID )
3782  If Not pwq Then
3783  put_unbound_pool - put a worker_pool*@pool: worker_pool to put* Put @pool
3784  Return NULL
3787  alize newly alloced @pwq which is associated with @wq and @pool
3788  Return pwq
Caller
NameDescribe
apply_wqattrs_prepareallocate the attrs and pwqs for later installation
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