Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:alloc_and_link_pwqs

Proto:static int alloc_and_link_pwqs(struct workqueue_struct *wq)

Type:int

Parameter:

TypeParameterName
struct workqueue_struct *wq
4139  highpri = hot fields used during command issue, aligned to cacheline & WQ_HIGHPRI
4142  If Not (hot fields used during command issue, aligned to cacheline & WQ_UNBOUND) Then
4143  I: per-cpu pwqs = alloc_percpu(structpool_workqueue)
4144  If Not I: per-cpu pwqs Then Return -ENOMEM
4159  Return 0
4162  get_online_cpus()
4163  If hot fields used during command issue, aligned to cacheline & __WQ_ORDERED Then
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 && (next != & WR: node on wq->pwqs || prev != & WR: node on wq->pwqs ), "ordering guarantee broken for workqueue %s\n", I: workqueue name )
4169  Else
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  Return ret
Caller
NameDescribe
alloc_workqueue