man.bsd.lv manual page server

Manual Page Search Parameters
DEVICE_ENABLE(9) Kernel Developer's Manual DEVICE_ENABLE(9)

device_enable, device_disable, device_is_enabledmanipulate device enabled flag

#include <sys/param.h>
#include <sys/bus.h>

void
device_enable(device_t dev);

void
device_disable(device_t dev);

int
device_is_enabled(device_t dev);

Each device has an enabled flag associated with it. A device is enabled by default when it is created but may be disabled (for instance to prevent a destructive or time consuming probe attempt). To disable a device, call (), to reenable it, call () and to test to see if a device is enabled, call ().

device(9)

This man page was written by Doug Rabson.

June 16, 1998 DragonFly-5.6.1