函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pc_rmid - remove an ipc identifier*@ids: ipc identifier set*@ipcp: ipc perm structure containing the identifier to remove* ipc_ids.rwsem (as a writer) and the spinlock for this ID are held* before this function is called, and remain locked on the exit.

函数原型:void ipc_rmid(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)

返回类型:void

参数:

类型参数名称
struct ipc_ids *ids
struct kern_ipc_perm *ipcp
463  idx等于ipcid_to_idx(id)
465  删除释放idr
466  pc_kht_remove - remove an ipc from the key hashtable*@ids: ipc identifier set*@ipcp: ipc perm structure containing the key to remove* ipc_ids.rwsem (as a writer) and the spinlock for this ID are held
467  in_use自减
468  deleted = true
470  如果此条件成立可能性小(为编译器优化)(idx == max_idx)则
471  循环
472  idx自减
473  如果idx恒等于负1则退出
475  当非dr_find() - Return pointer for given ID循环
476  max_idx等于idx
调用者
名称描述
msg_rmid
sem_rmid
shm_rmid