Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:apply_workqueue_attrs_locked

Proto:static int apply_workqueue_attrs_locked(struct workqueue_struct *wq, const struct workqueue_attrs *attrs)

Type:int

Parameter:

TypeParameterName
struct workqueue_struct *wq
const struct workqueue_attrs *attrs
3998  If WARN_ON(!(hot fields used during command issue, aligned to cacheline & WQ_UNBOUND)) Then Return -EINVAL
4002  If Not list_empty - tests whether a list is empty*@head: the list to test. Then
4003  If WARN_ON(hot fields used during command issue, aligned to cacheline & __WQ_ORDERED_EXPLICIT) Then Return -EINVAL
4006  hot fields used during command issue, aligned to cacheline &= ~__WQ_ORDERED
4009  ctx = allocate the attrs and pwqs for later installation
4010  If Not ctx Then Return -ENOMEM
4014  set attrs and install prepared pwqs, @ctx points to old pwqs on return
4015  the resources after success or abort
4017  Return 0
Caller
NameDescribe
apply_workqueue_attrsapply_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