Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\swait.h Create Date:2022-07-28 05:35:55
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:swq_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.

Proto:static inline bool swq_has_sleeper(struct swait_queue_head *wq)

Type:bool

Parameter:

TypeParameterName
struct swait_queue_head *wq
156  smp_mb()
157  Return 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_
Caller
NameDescribe
apf_task_wake_one