Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\completion.c Create Date:2022-07-28 09:41:14
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:do_wait_for_common

Proto:static inline long __sched do_wait_for_common(struct completion *x, long (*action)(long ), long timeout, int state)

Type:long

Parameter:

TypeParameterName
struct completion *x
long (*action
longtimeout
intstate
72  If Not done Then
73  DECLARE_WAITQUEUE(wait, current process)
75  __add_wait_queue_entry_tail_exclusive( & wait, & wait)
76  Do
84  spin_lock_irq( & lock)
85  When Not done && timeout cycle
86  __remove_wait_queue( & wait, & wait)
87  If Not done Then Return timeout
90  If done != UINT_MAX Then done--
92  Return If timeout Else 1
Caller
NameDescribe
__wait_for_common