---
name: "ipc_addid"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/ipc_addid"
---

# ipc\_addid(9)

add an ipc identifier

## NAME

ipc\_addid - add an ipc identifier

## SYNOPSIS

**int ipc\_addid(struct ipc\_ids \*** *ids***, struct kern\_ipc\_perm \*** *new***, int** *size***);**

## ARGUMENTS

*ids*

ipc identifier set

*new*

new ipc permission set

*size*

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 id 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
