Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__mutex_waiter_is_first

Proto:static inline bool __mutex_waiter_is_first(struct mutex *lock, struct mutex_waiter *waiter)

Type:bool

Parameter:

TypeParameterName
struct mutex *lock
struct mutex_waiter *waiter
200  Return 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
Caller
NameDescribe
__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: