summaryrefslogtreecommitdiff
path: root/ipc/ipc_object.h
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-08-16 02:18:47 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-09-14 14:45:06 +0200
commitb51f047c28142cdfb7b24641006d0afdcf399292 (patch)
tree7387a8a62833e78eb232005121b0a7d786c86c6b /ipc/ipc_object.h
parent537188a07d5ee6548555260acdd616034c73c7c4 (diff)
codify locking contracts
Conflicts: vm/vm_page.h
Diffstat (limited to 'ipc/ipc_object.h')
-rw-r--r--ipc/ipc_object.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ipc/ipc_object.h b/ipc/ipc_object.h
index 8504a23..be85dd6 100644
--- a/ipc/ipc_object.h
+++ b/ipc/ipc_object.h
@@ -87,8 +87,11 @@ extern struct kmem_cache ipc_object_caches[IOT_NUMBER];
#define io_lock_init(io) lock_init(&(io)->io_lock_data, TRUE)
#define io_lock(io) lock_write(&(io)->io_lock_data)
+#define io_lock_surrender(io) lock_write_surrender(&(io)->io_lock_data)
+#define io_lock_steal(io) lock_write_steal(&(io)->io_lock_data)
#define io_lock_try(io) lock_try_write(&(io)->io_lock_data)
#define io_unlock(io) lock_write_done(&(io)->io_lock_data)
+#define have_io_lock(io) have_write_lock(&(io)->io_lock_data)
#define io_check_unlock(io) \
MACRO_BEGIN \