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_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.

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

Type:struct kern_ipc_perm

Parameter:

TypeParameterName
struct ipc_ids *ids
intid
596  idx = ipcid_to_idx(id)
598  out = dr_find() - Return pointer for given ID
599  If Not out Then Return ERR_PTR( - EINVAL)
602  Return out
Caller
NameDescribe
ipc_obtain_object_checkpc_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.
msq_obtain_object
sem_obtain_objectsem_lock_(check_) routines are called in the paths where the rwsem* is not held.* The caller holds the RCU read lock.
shm_obtain_object
shm_lockshm_lock_(check_) routines are called in the paths where the rwsem* is not necessarily held.