函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\wait.h Create Date:2022-07-27 06:39:20
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:wq_has_sleeper - check if there are any waiting processes*@wq_head: wait queue head* Returns true if wq_head has waiting processes* Please refer to the comment for waitqueue_active.

函数原型:static inline bool wq_has_sleeper(struct wait_queue_head *wq_head)

返回类型:bool

参数:

类型参数名称
struct wait_queue_head *wq_head
159  smp_mb()
160  返回:waitqueue_active -- locklessly test for waiters on the queue*@wq_head: the waitqueue to test for waiters* returns true if the wait list is not empty* NOTE: this function is lockless and requires care, incorrect usage _will_
调用者
名称描述
rq_qos_waitq_qos_wait - throttle on a rqw if we need to*@rqw: rqw to throttle on*@private_data: caller provided specific data*@acquire_inflight_cb: inc the rqw->inflight counter if we can*@cleanup_cb: the callback to cleanup in case we race with a waker
rwb_wake_all
wbt_rqw_done
__io_commit_cqring
io_ring_ctx_wait_and_kill
skwq_has_sleeperskwq_has_sleeper - check if there are any waiting processes*@wq: struct socket_wq* Returns true if socket_wq has waiting processes* The purpose of the skwq_has_sleeper and sock_poll_wait is to wrap the memory* barrier call