diff options
Diffstat (limited to 'ipc/util.h')
-rw-r--r-- | ipc/util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ipc/util.h b/ipc/util.h index 13d92fea15a3..c36b9977c957 100644 --- a/ipc/util.h +++ b/ipc/util.h @@ -171,6 +171,11 @@ static inline void ipc_unlock(struct kern_ipc_perm *perm) rcu_read_unlock(); } +static inline void ipc_lock_object(struct kern_ipc_perm *perm) +{ + spin_lock(&perm->lock); +} + struct kern_ipc_perm *ipc_lock_check(struct ipc_ids *ids, int id); struct kern_ipc_perm *ipc_obtain_object_check(struct ipc_ids *ids, int id); int ipcget(struct ipc_namespace *ns, struct ipc_ids *ids, |