函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Return the first idle worker. Safe with preemption disabled

函数原型:static struct worker *first_idle_worker(struct worker_pool *pool)

返回类型:struct worker

参数:

类型参数名称
struct worker_pool *pool
816  如果此条件成立可能性小(为编译器优化)(链表为空)则返回:NULL
819  返回:list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.( & X: list of idle workers , structworker, entry)
调用者
名称描述
wake_up_workerwake_up_worker - wake up an idle worker*@pool: worker pool to wake worker from* Wake up the first idle worker of @pool.* CONTEXT:* spin_lock_irq(pool->lock).
wq_worker_sleeping准备休眠的进程
put_unbound_poolput_unbound_pool - put a worker_pool*@pool: worker_pool to put* Put @pool