aboutsummaryrefslogtreecommitdiffstats
path: root/ipc/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/util.h')
-rw-r--r--ipc/util.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/ipc/util.h b/ipc/util.h
index a1cbc3aaf25a..d64db3e56f7d 100644
--- a/ipc/util.h
+++ b/ipc/util.h
@@ -15,9 +15,9 @@
15 15
16#define SEQ_MULTIPLIER (IPCMNI) 16#define SEQ_MULTIPLIER (IPCMNI)
17 17
18void sem_init (void); 18void sem_init(void);
19void msg_init (void); 19void msg_init(void);
20void shm_init (void); 20void shm_init(void);
21 21
22struct ipc_namespace; 22struct ipc_namespace;
23 23
@@ -116,8 +116,8 @@ int ipcperms(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, short flg);
116/* for rare, potentially huge allocations. 116/* for rare, potentially huge allocations.
117 * both function can sleep 117 * both function can sleep
118 */ 118 */
119void* ipc_alloc(int size); 119void *ipc_alloc(int size);
120void ipc_free(void* ptr, int size); 120void ipc_free(void *ptr, int size);
121 121
122/* 122/*
123 * For allocation that need to be freed by RCU. 123 * For allocation that need to be freed by RCU.
@@ -125,7 +125,7 @@ void ipc_free(void* ptr, int size);
125 * getref increases the refcount, the putref call that reduces the recount 125 * getref increases the refcount, the putref call that reduces the recount
126 * to 0 schedules the rcu destruction. Caller must guarantee locking. 126 * to 0 schedules the rcu destruction. Caller must guarantee locking.
127 */ 127 */
128void* ipc_rcu_alloc(int size); 128void *ipc_rcu_alloc(int size);
129int ipc_rcu_getref(void *ptr); 129int ipc_rcu_getref(void *ptr);
130void ipc_rcu_putref(void *ptr, void (*func)(struct rcu_head *head)); 130void ipc_rcu_putref(void *ptr, void (*func)(struct rcu_head *head));
131void ipc_rcu_free(struct rcu_head *head); 131void ipc_rcu_free(struct rcu_head *head);
@@ -144,7 +144,7 @@ struct kern_ipc_perm *ipcctl_pre_down_nolock(struct ipc_namespace *ns,
144 /* On IA-64, we always use the "64-bit version" of the IPC structures. */ 144 /* On IA-64, we always use the "64-bit version" of the IPC structures. */
145# define ipc_parse_version(cmd) IPC_64 145# define ipc_parse_version(cmd) IPC_64
146#else 146#else
147int ipc_parse_version (int *cmd); 147int ipc_parse_version(int *cmd);
148#endif 148#endif
149 149
150extern void free_msg(struct msg_msg *msg); 150extern void free_msg(struct msg_msg *msg);