函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__mutex_waiter_is_first

函数原型:static inline bool __mutex_waiter_is_first(struct mutex *lock, struct mutex_waiter *waiter)

返回类型:bool

参数:

类型参数名称
struct mutex *lock
struct mutex_waiter *waiter
200  返回:list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.( & wait_list, structmutex_waiter, list)恒等于waiter
调用者
名称描述
__mutex_add_waiterAdd @waiter to a given location in the lock wait_list and set the* FLAG_WAITERS flag if it's the first waiter.
__mutex_lock_commonLock a mutex (possibly interruptible), slowpath: