函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\util.c Create Date:2022-07-27 18:15:13
Last Modify:2022-05-23 18:05:07 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:struct kern_ipc_perm *ipc_obtain_object_idr(struct ipc_ids *ids, int id)

返回类型:struct kern_ipc_perm

参数:

类型参数名称
struct ipc_ids *ids
intid
596  idx等于ipcid_to_idx(id)
598  out等于dr_find() - Return pointer for given ID
599  如果非out则返回:错误号
602  返回:out
调用者
名称描述
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.