Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\util.c Create Date:2022-07-28 16:39:56
Last Modify:2022-05-23 18:05:07 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pc_obtain_object_check*@ids: ipc identifier set*@id: ipc id to look for* Similar to ipc_obtain_object_idr() but also checks the ipc object* sequence number.* Call inside the RCU critical section.* The ipc object is *not* locked on exit.

Proto:struct kern_ipc_perm *ipc_obtain_object_check(struct ipc_ids *ids, int id)

Type:struct kern_ipc_perm

Parameter:

TypeParameterName
struct ipc_ids *ids
intid
618  out = pc_obtain_object_idr*@ids: ipc identifier set*@id: ipc id to look for* Look for an id in the ipc ids idr and return associated ipc object.* Call inside the RCU critical section.* The ipc object is *not* locked on exit.
620  If IS_ERR(out) Then Go to out
623  If ipc_checkid(out, id) Then Return ERR_PTR( - EINVAL)
625  out :
626  Return out
Caller
NameDescribe
ipcctl_obtain_checkpcctl_obtain_check - retrieve an ipc object and check permissions*@ns: ipc namespace*@ids: the table of ids where to look for the ipc*@id: the id of the ipc to retrieve*@cmd: the cmd to check*@perm: the permission to set*@extra_perm: one extra permission
msq_obtain_object_check
sem_obtain_object_check
shm_obtain_object_check