函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:manage_workers - manage worker pool*@worker: self* Assume the manager role and manage the worker pool @worker belongs* to. At any given time, there can be only zero or one manager per* pool. The exclusion is handled automatically by this function.

函数原型:static bool manage_workers(struct worker *worker)

返回类型:bool

参数:

类型参数名称
struct worker *worker
2127  pool等于A: the associated pool
2129  如果X: flags 按位与POOL_MANAGER_ACTIVE则返回:false
2132  X: flags 或等于POOL_MANAGER_ACTIVE
2133  L: purely informational 等于worker
2135  maybe_create_worker - create a new worker if necessary*@pool: pool to create a new worker for* Create a new worker for @pool if necessary
2137  L: purely informational = NULL
2138  X: flags 与等于POOL_MANAGER_ACTIVE的反
2139  wake_up( & wq_manager_wait)
2140  返回:true
调用者
名称描述
worker_thread