Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Return the real task structure pointer of the owner and the embedded* flags in the owner. pflags must be non-NULL.

Proto:static inline struct task_struct *rwsem_owner_flags(struct rw_semaphore *sem, unsigned long *pflags)

Type:struct task_struct

Parameter:

TypeParameterName
struct rw_semaphore *sem
unsigned long *pflags
298  owner = atomic_long_read( & Write owner or one of the read owners as well flags regarding* the current state of the rwsem. Can be used as a speculative* check to see if the write owner is running on the cpu.)
300  pflags = owner & RWSEM_OWNER_FLAGS_MASK
301  Return owner & ~RWSEM_OWNER_FLAGS_MASK