---
name: "ipc_lock"
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_lock"
---

# ipc\_lock(9)

lock an ipc structure without rwsem held

## NAME

ipc\_lock - lock an ipc structure without rwsem held

## SYNOPSIS

**struct kern\_ipc\_perm \* ipc\_lock(struct ipc\_ids \*** *ids***, int** *id***);**

## ARGUMENTS

*ids*

ipc identifier set

*id*

ipc id to look for

## DESCRIPTION

Look for an id in the ipc ids idr and lock the associated ipc object.

The ipc object is locked on successful exit.

## COPYRIGHT
