Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\util.h Create Date:2022-07-28 16:38:51
Last Modify:2022-05-20 10:36:20 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pc_valid_object() - helper to sort out IPC_RMID races for codepaths* where the respective ipc_ids.rwsem is not being held down.* Checks whether the ipc object is still around or if it's gone already, as

Proto:static inline bool ipc_valid_object(struct kern_ipc_perm *perm)

Type:bool

Parameter:

TypeParameterName
struct kern_ipc_perm *perm
238  Return Not deleted
Caller
NameDescribe
msgctl_stat
do_msgsnd
do_msgrcv
semctl_stat
semctl_setval
semctl_main
find_alloc_undod_alloc_undo - lookup (and if not present create) undo array*@ns: namespace*@semid: semaphore array id* The function looks up (and if not present creates) the undo structure.* The size of the undo structure depends on the size of the semaphore
do_semtimedop
exit_semadd semadj values to semaphores, free undo structures
shm_lockshm_lock_(check_) routines are called in the paths where the rwsem* is not necessarily held.
shmctl_stat
shmctl_do_lock
do_shmatFix shmaddr, allocate descriptor, map shm, add attach descriptor to lists.* NOTE! Despite the name, this is NOT a direct system call entrypoint. The* "raddr" thing points to kernel space, and there has to be a wrapper around* this.