---
name: "ipc_lock_down"
section: "9"
platform: "linux"
package: "linux-manual-2.6.26"
version: "2.6.26-29"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/ipc_lock_down"
---

# ipc\_lock\_down(9)

Lock an ipc structure with rw\_sem held

## NAME

ipc\_lock\_down - Lock an ipc structure with rw\_sem held

## SYNOPSIS

**struct kern\_ipc\_perm \* ipc\_lock\_down(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 exit.

This is the routine that should be called when the rw\_mutex is already held, i.e. idr tree protected.

## COPYRIGHT
