tail head cat sleep
QR code linking to this page

Manual Pages  — DEVICE_ENABLE

NAME

device_enable, device_disable, device_is_enabled – manipulate device enabled flag

CONTENTS

SYNOPSIS

#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);

DESCRIPTION

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 device_disable(), to re-enable it, call device_enable() and to test to see if a device is enabled, call device_is_enabled().

SEE ALSO

device(9)

AUTHORS

This manual page was written by Doug Rabson.

DEVICE_ENABLE (9) June 16, 1998

tail head cat sleep
QR code linking to this page


Please direct any comments about this manual page service to Ben Bullock. Privacy policy.

Our grievance is not just against Unix itself, but against the cult of Unix zealots who defend and nurture it. They take the heat, disease, and pestilence as givens, and, as ancient shamans did, display their wounds, some self-inflicted, as proof of their power and wizardry. We aim, through bluntness and humor, to show them that they pray to a tin god, and that science, not religion, is the path to useful and friendly technology.
— The Unix Haters' handbook