diff options
Diffstat (limited to 'ipc/util.h')
-rw-r--r-- | ipc/util.h | 14 |
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 | ||
18 | void sem_init (void); | 18 | void sem_init(void); |
19 | void msg_init (void); | 19 | void msg_init(void); |
20 | void shm_init (void); | 20 | void shm_init(void); |
21 | 21 | ||
22 | struct ipc_namespace; | 22 | struct 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 | */ |
119 | void* ipc_alloc(int size); | 119 | void *ipc_alloc(int size); |
120 | void ipc_free(void* ptr, int size); | 120 | void 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 | */ |
128 | void* ipc_rcu_alloc(int size); | 128 | void *ipc_rcu_alloc(int size); |
129 | int ipc_rcu_getref(void *ptr); | 129 | int ipc_rcu_getref(void *ptr); |
130 | void ipc_rcu_putref(void *ptr, void (*func)(struct rcu_head *head)); | 130 | void ipc_rcu_putref(void *ptr, void (*func)(struct rcu_head *head)); |
131 | void ipc_rcu_free(struct rcu_head *head); | 131 | void 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 |
147 | int ipc_parse_version (int *cmd); | 147 | int ipc_parse_version(int *cmd); |
148 | #endif | 148 | #endif |
149 | 149 | ||
150 | extern void free_msg(struct msg_msg *msg); | 150 | extern void free_msg(struct msg_msg *msg); |