函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:alloc_and_link_pwqs

函数原型:static int alloc_and_link_pwqs(struct workqueue_struct *wq)

返回类型:int

参数:

类型参数名称
struct workqueue_struct *wq
4139  highpri等于hot fields used during command issue, aligned to cacheline 按位与WQ_HIGHPRI
4142  如果非hot fields used during command issue, aligned to cacheline 按位与WQ_UNBOUND的值则
4143  I: per-cpu pwqs 等于alloc_percpu(structpool_workqueue)
4144  如果非I: per-cpu pwqs 则返回:负ENOMEM
4159  返回:0
4162  get_online_cpus()
4163  如果hot fields used during command issue, aligned to cacheline 按位与__WQ_ORDERED
4164  ret等于apply_workqueue_attrs - apply new workqueue_attrs to an unbound workqueue*@wq: the target workqueue*@attrs: the workqueue_attrs to apply, allocated with alloc_workqueue_attrs()* Apply @attrs to an unbound workqueue @wq
4166  WARN(!ret && (链表后项 != & WR: node on wq->pwqs || 链表前项 != & WR: node on wq->pwqs ), "ordering guarantee broken for workqueue %s\n", I: workqueue name )
4169  否则
4170  ret等于apply_workqueue_attrs - apply new workqueue_attrs to an unbound workqueue*@wq: the target workqueue*@attrs: the workqueue_attrs to apply, allocated with alloc_workqueue_attrs()* Apply @attrs to an unbound workqueue @wq
4172  put_online_cpus()
4174  返回:ret
调用者
名称描述
alloc_workqueue