Remove an ipc identifier
void ipc_rmid(struct ipc_ids * ids, struct kern_ipc_perm * ipcp);
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.