|
NAMEdevice_get_state , device_busy ,
device_unbusy ,
device_is_alive ,
device_is_attached —
manipulate device state
SYNOPSIS#include <sys/param.h>
#include <sys/bus.h>
device_state_t
void
void
int
int
DESCRIPTIONThe current state of a device is accessed by callingdevice_get_state () which returns
DS_NOTPRESENT , DS_ALIVE ,
DS_ATTACHED or DS_BUSY
(described in
device(9)).
To test see if a device was successfully probed, call
device_is_alive () which simply returns if the state is
greater or equal to DS_ALIVE . To test see if a device
was successfully attached, call device_is_attached ()
which simply returns if the state is greater or equal to
DS_ATTACHED .
Each device has a busy count which is incremented when
When SEE ALSOdevice(9)AUTHORSThis manual page was written by Doug Rabson.
Visit the GSP FreeBSD Man Page Interface. |