Scroll to navigation

IPC_ADDID(9) Kernel IPC facilities IPC_ADDID(9)

NAME

ipc_addid - add an ipc identifier

SYNOPSIS

int ipc_addid(struct ipc_ids * ids, struct kern_ipc_perm * new, int limit);

ARGUMENTS

ids

ipc identifier set

new

new ipc permission set

limit

limit for the number of used ids

DESCRIPTION

Add an entry 'new' to the ipc ids idr. The permissions object is initialised and the first free entry is set up and the index assigned is returned. The 'new' entry is returned in a locked state on success. On failure the entry is not locked and a negative err-code is returned.

Called with writer ipc_ids.rwsem held.

COPYRIGHT

June 2024 Kernel Hackers Manual 3.10