函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:apply_workqueue_attrs_locked

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

返回类型:int

参数:

类型参数名称
struct workqueue_struct *wq
const struct workqueue_attrs *attrs
3998  如果WARN_ON(!(hot fields used during command issue, aligned to cacheline & WQ_UNBOUND))则返回:负EINVAL
4002  如果非链表为空
4003  如果WARN_ON(hot fields used during command issue, aligned to cacheline & __WQ_ORDERED_EXPLICIT)则返回:负EINVAL
4006  hot fields used during command issue, aligned to cacheline 与等于__WQ_ORDERED的反
4009  ctx等于allocate the attrs and pwqs for later installation
4010  如果非ctx则返回:负ENOMEM
4014  set attrs and install prepared pwqs, @ctx points to old pwqs on return
4015  the resources after success or abort
4017  返回:0
调用者
名称描述
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