Name

ipc_lock — lock an ipc structure without rwsem held

Synopsis

struct kern_ipc_perm * ipc_lock (struct ipc_ids * ids,
 int id);
 

Arguments

struct ipc_ids * ids

ipc identifier set

int 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.