X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/9bccf70c0258c7cac2dcb80011b2a964d884c552..5ba3f43ea354af8ad55bea84372a2bc834d8757c:/osfmk/man/semaphore_signal.html diff --git a/osfmk/man/semaphore_signal.html b/osfmk/man/semaphore_signal.html old mode 100755 new mode 100644 index c3691eb67..fcb794fc0 --- a/osfmk/man/semaphore_signal.html +++ b/osfmk/man/semaphore_signal.html @@ -1 +1,49 @@ -

semaphore_signal


Function - Increments the semaphore count.

SYNOPSIS

kern_return_t   semaphore_signal
                (semaphore_t                          semaphore);

PARAMETERS

semaphore
[in send right] The port naming the semaphore to be signalled.

DESCRIPTION

The semaphore_signal function increments the semaphore count. If the count goes non-negative (i.e. greater than or equal to 0) and a thread is blocked on the semaphore, then the waiting thread is scheduled to execute. If multiple threads are blocked on the semaphore, the thread scheduled to execute is selected according to the wakeup policy of the semaphore (set when the semaphore was created via semaphore_create). Device driver interrupt service routines may safely execute semaphore_signal operations without causing a deadlock.

RETURN VALUES

KERN_INVALID_ARGUMENT
The specified semaphore is invalid.

KERN_TERMINATED
The specified semaphore has been destroyed.

KERN_SUCCESS
The semaphore has been signalled.

RELATED INFORMATION

Functions: semaphore_create, semaphore_destroy, semaphore_signal_all, semaphore_wait, device_get_status. \ No newline at end of file +

semaphore_signal

+
+

+Function - Increments the semaphore count. +

SYNOPSIS

+
+kern_return_t   semaphore_signal
+                (semaphore_t                          semaphore);
+
+

PARAMETERS

+
+

+

semaphore +
+[in send right] The port naming the semaphore to be signalled. +
+

DESCRIPTION

+

+The semaphore_signal function increments the semaphore count. If the +count goes non-negative (i.e. greater than or equal to 0) and a thread +is blocked on the semaphore, then the waiting thread is scheduled to +execute. If multiple threads are blocked on the semaphore, the thread +scheduled to execute is selected according to the wakeup policy of the +semaphore (set when the semaphore was created via semaphore_create). +Device driver interrupt service routines may safely execute +semaphore_signal operations without causing a deadlock. +

RETURN VALUES

+
+

+

KERN_INVALID_ARGUMENT +
+The specified semaphore is invalid. +

+

KERN_TERMINATED +
+The specified semaphore has been destroyed. +

+

KERN_SUCCESS +
+The semaphore has been signalled. +
+

RELATED INFORMATION

+

+Functions: +semaphore_create, +semaphore_destroy, +semaphore_signal_all, +semaphore_wait, +device_get_status.