函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\completion.c Create Date:2022-07-27 10:41:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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,

函数原型:bool try_wait_for_completion(struct completion *x)

返回类型:bool

参数:

类型参数名称
struct completion *x
283  bool ret = true
291  如果非READ_ONCE(用于同步的原子量)则返回:false
294  spin_lock_irqsave( & lock, flags)
295  如果非用于同步的原子量ret = false
297  否则如果用于同步的原子量不等于UINT_MAX用于同步的原子量自减
299  spin_unlock_irqrestore( & lock, flags)
300  返回:ret