X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/9bccf70c0258c7cac2dcb80011b2a964d884c552..2a1bd2d3eef5c7a7bb14f4bb9fdbca9a96ee4752:/osfmk/man/lock_acquire.html
diff --git a/osfmk/man/lock_acquire.html b/osfmk/man/lock_acquire.html
old mode 100755
new mode 100644
index 7bfc0f91f..5181b482a
--- a/osfmk/man/lock_acquire.html
+++ b/osfmk/man/lock_acquire.html
@@ -1 +1,61 @@
-
lock_acquire
Function - Acquire access rights to a lock.
SYNOPSIS
kern_return_t lock_acquire
(lock_set_t lock_set,
int lock_id);
PARAMETERS
- lock_set
-
[in send right] The port naming the lock set which represents the
lock.
- lock_id
-
[in scalar] The lock, represented by the lock set, to be acquired.
DESCRIPTION
The lock_acquire function acquires access rights to a specific lock
being represented by a given lock set. If the lock is already
controlled by another thread then the calling thread will block.
RETURN VALUES
- KERN_SUCCESS
-
The lock was acquired.
- KERN_INVALID_ARGUMENT
-
The specified lock set is invalid, or the lock id is out of range.
- KERN_LOCK_UNSTABLE
-
The acquired lock has an unstable state.
- KERN_LOCK_SET_DESTROYED
-
The specified lock has been destroyed.
- KERN_ABORTED
-
While blocked to wait for the specified lock to become available, the calling
thread was awoken by an unrelated event, such as thread termination.
RELATED INFORMATION
Functions:
lock_release,
lock_try,
lock_handoff,
lock_handoff_accept,
lock_make_stable,
lock_set_create,
lock_set_destroy.
\ No newline at end of file
+
lock_acquire
+
+
+Function - Acquire access rights to a lock.
+
SYNOPSIS
+
+kern_return_t lock_acquire
+ (lock_set_t lock_set,
+ int lock_id);
+
+PARAMETERS
+
+
+
- lock_set
+
-
+[in send right] The port naming the lock set which represents the
+lock.
+
+
- lock_id
+
-
+[in scalar] The lock, represented by the lock set, to be acquired.
+
+DESCRIPTION
+
+The lock_acquire function acquires access rights to a specific lock
+being represented by a given lock set. If the lock is already
+controlled by another thread then the calling thread will block.
+
RETURN VALUES
+
+
+
- KERN_SUCCESS
+
-
+The lock was acquired.
+
+
- KERN_INVALID_ARGUMENT
+
-
+The specified lock set is invalid, or the lock id is out of range.
+
+
- KERN_LOCK_UNSTABLE
+
-
+The acquired lock has an unstable state.
+
+
- KERN_LOCK_SET_DESTROYED
+
-
+The specified lock has been destroyed.
+
+
- KERN_ABORTED
+
-
+While blocked to wait for the specified lock to become available, the calling
+ thread was awoken by an unrelated event, such as thread termination.
+
+RELATED INFORMATION
+
+Functions:
+lock_release,
+lock_try,
+lock_handoff,
+lock_handoff_accept,
+lock_make_stable,
+lock_set_create,
+lock_set_destroy.