Function - Return the current device status.
#include< device/device.h>
kern_return_t device_get_status
(mach_port_t device,
dev_flavor_t flavor,
dev_status_t status,
mach_msg_type_number_t *status_count);
The device_get_status function returns status information pertaining to an open device. The possible values for flavor as well as the meaning of the returned status information is device dependent.
Functions: device_set_status.