X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/9bccf70c0258c7cac2dcb80011b2a964d884c552..13fec9890cf095cc781fdf7b8917cb03bf32dd4c:/osfmk/man/device_set_status.html diff --git a/osfmk/man/device_set_status.html b/osfmk/man/device_set_status.html index a55a2347a..bc1cd92c2 100755 --- a/osfmk/man/device_set_status.html +++ b/osfmk/man/device_set_status.html @@ -1 +1,70 @@ -

device_set_status


Function - Set device status.

SYNOPSIS

#include< device/device.h>

kern_return_t   device_set_status
                (mach_port_t                             device,
                 dev_flavor_t                            flavor,
                 dev_status_t                            status,
                 mach_msg_type_number_t            status_count);

PARAMETERS

device
[in device send right] A device port to the device to be manipulated.

flavor
[in scalar] The type of status information to set.

status
[pointer to in array of natural-sized units] The status information to set.

status_count
[in scalar] The size of the status information (in natural-sized units).

DESCRIPTION

The device_set_status function sets device status. The possible values of flavor as well as the corresponding meanings are device dependent.

RETURN VALUES

D_DEVICE_DOWN
Device has been shut down

D_IO_ERROR
Hardware I/O error

D_NO_SUCH_DEVICE
No device with that name, or the device is not operational.

D_OUT_OF_BAND
Out-of-band condition occurred on device (such as typing <Ctrl>-C).

D_READ_ONLY
Data cannot be written to this device.

RELATED INFORMATION

Functions: device_get_status. \ No newline at end of file +

device_set_status

+
+

+Function - Set device status. +

SYNOPSIS

+
+#include< device/device.h>
+
+kern_return_t   device_set_status
+                (mach_port_t                             device,
+                 dev_flavor_t                            flavor,
+                 dev_status_t                            status,
+                 mach_msg_type_number_t            status_count);
+
+

PARAMETERS

+
+

+

device +
+[in device send right] +A device port to the device to be manipulated. +

+

flavor +
+[in scalar] +The type of status information to set. +

+

status +
+[pointer to in array of natural-sized units] +The status information to set. +

+

status_count +
+[in scalar] +The size of the status information (in natural-sized units). +
+

DESCRIPTION

+

+The device_set_status function sets device status. +The possible values of flavor +as well as the corresponding meanings are device dependent. +

RETURN VALUES

+
+

+

D_DEVICE_DOWN +
+Device has been shut down +

+

D_IO_ERROR +
+Hardware I/O error +

+

D_NO_SUCH_DEVICE +
+No device with that name, or the device is not operational. +

+

D_OUT_OF_BAND +
+Out-of-band condition occurred on device (such as typing + <Ctrl>-C). +

+

D_READ_ONLY +
+Data cannot be written to this device. +
+

RELATED INFORMATION

+

+Functions: +device_get_status.