|
@@ -112,10 +112,7 @@ int ipcperms(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, short flg);
|
|
|
* Objects are reference counted, they start with reference count 1.
|
|
|
* getref increases the refcount, the putref call that reduces the recount
|
|
|
* to 0 schedules the rcu destruction. Caller must guarantee locking.
|
|
|
- *
|
|
|
- * struct kern_ipc_perm must be the first member in the allocated structure.
|
|
|
*/
|
|
|
-struct kern_ipc_perm *ipc_rcu_alloc(int size);
|
|
|
int ipc_rcu_getref(struct kern_ipc_perm *ptr);
|
|
|
void ipc_rcu_putref(struct kern_ipc_perm *ptr,
|
|
|
void (*func)(struct rcu_head *head));
|