函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:btain a pool matching @attr and create a pwq associating the pool and @wq

函数原型:static struct pool_workqueue *alloc_unbound_pwq(struct workqueue_struct *wq, const struct workqueue_attrs *attrs)

返回类型:struct pool_workqueue

参数:

类型参数名称
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  如果非pool则返回:NULL
3781  pwq等于在指定节点上分配一个对象
3782  如果非pwq
3783  put_unbound_pool - put a worker_pool*@pool: worker_pool to put* Put @pool
3784  返回:NULL
3787  alize newly alloced @pwq which is associated with @wq and @pool
3788  返回:pwq
调用者
名称描述
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