aboutsummaryrefslogtreecommitdiffstats
path: root/ipc/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/util.h')
-rw-r--r--ipc/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ipc/util.h b/ipc/util.h
index 2a03d8cc6a01..fa7e7a07486e 100644
--- a/ipc/util.h
+++ b/ipc/util.h
@@ -79,6 +79,8 @@ void __init ipc_init_proc_interface(const char *path, const char *header,
79#define IPC_MSG_IDS 1 79#define IPC_MSG_IDS 1
80#define IPC_SHM_IDS 2 80#define IPC_SHM_IDS 2
81 81
82#define ipcid_to_idx(id) ((id) % SEQ_MULTIPLIER)
83
82/* must be called with ids->mutex acquired.*/ 84/* must be called with ids->mutex acquired.*/
83int ipc_addid(struct ipc_ids *, struct kern_ipc_perm *, int); 85int ipc_addid(struct ipc_ids *, struct kern_ipc_perm *, int);
84int ipc_get_maxid(struct ipc_ids *); 86int ipc_get_maxid(struct ipc_ids *);