函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:swait_active -- locklessly test for waiters on the queue*@wq: 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_

函数原型:static inline int swait_active(struct swait_queue_head *wq)

返回类型:int

参数:

类型参数名称
struct swait_queue_head *wq
136  返回:非链表为空
调用者
名称描述
swq_has_sleeperswq_has_sleeper - check if there are any waiting processes*@wq: the waitqueue to test for waiters* Returns true if @wq has waiting processes* Please refer to the comment for swait_active.