X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/9bccf70c0258c7cac2dcb80011b2a964d884c552..2a1bd2d3eef5c7a7bb14f4bb9fdbca9a96ee4752:/osfmk/man/lock_release.html diff --git a/osfmk/man/lock_release.html b/osfmk/man/lock_release.html old mode 100755 new mode 100644 index 2fc3d3f13..36a6ef30d --- a/osfmk/man/lock_release.html +++ b/osfmk/man/lock_release.html @@ -1 +1,55 @@ -

lock_release


Function - Release ownership of a lock.

SYNOPSIS

kern_return_t   lock_release
                (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 released.

DESCRIPTION

The lock_release function release the ownership of the specified lock. If the calling thread does not own the lock then the call will fail.

RETURN VALUES

KERN_INVALID_ARGUMENT
The specified lock_set is invalid, or the lock_id is out of range.

KERN_INVALID_RIGHT
The specified task does not own the specified lock.

KERN_SUCCESS
The ownership of the lock was released.

KERN_LOCK_SET_DESTROYED
The specified lock has been destroyed.

RELATED INFORMATION

Functions: lock_acquire, lock_make_stable, lock_try, lock_handoff, lock_handoff_accept, lock_set_create, lock_set_destroy. \ No newline at end of file +

lock_release

+
+

+Function - Release ownership of a lock. +

SYNOPSIS

+
+kern_return_t   lock_release
+                (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 released. +
+

DESCRIPTION

+

+The lock_release function release the ownership of the specified lock. +If the calling thread does not own the lock then the call will fail. +

RETURN VALUES

+
+

+

KERN_INVALID_ARGUMENT +
+The specified lock_set is invalid, or the lock_id is out of range. +

+

KERN_INVALID_RIGHT +
+ The specified task does not own the specified lock. +

+

KERN_SUCCESS +
+The ownership of the lock was released. +

+

KERN_LOCK_SET_DESTROYED +
+The specified lock has been destroyed. +
+

RELATED INFORMATION

+

+Functions: +lock_acquire, +lock_make_stable, +lock_try, +lock_handoff, +lock_handoff_accept, +lock_set_create, +lock_set_destroy.