Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:void ipc_rmid(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)

Type:void

Parameter:

TypeParameterName
struct ipc_ids *ids
struct kern_ipc_perm *ipcp
463  idx = ipcid_to_idx(id)
465  dr_remove() - Remove an ID from the 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  If Value for the false possibility is greater at compile time(idx == max_idx) Then
471  Do
472  idx--
473  If idx == -1 Then Break
475  When Not dr_find() - Return pointer for given ID cycle
476  max_idx = idx
Caller
NameDescribe
msg_rmid
sem_rmid
shm_rmid