Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ry_wait_for_completion - try to decrement a completion without blocking*@x: completion structure* Return: 0 if a decrement cannot be done without blocking* 1 if a decrement succeeded.* If a completion is being used as a counting completion,

Proto:bool try_wait_for_completion(struct completion *x)

Type:bool

Parameter:

TypeParameterName
struct completion *x
283  bool ret = true
291  If Not READ_ONCE(done) Then Return false
294  spin_lock_irqsave( & lock, flags)
295  If Not done Then ret = false
297  Else if done != UINT_MAX Then done--
299  spin_unlock_irqrestore( & lock, flags)
300  Return ret