logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

device_enable, device_disable, device_is_enabled — manipulate device enabled flag

Authors

       This manual page was written by Doug Rabson.

Debian                                            June 16, 1998                                 DEVICE_ENABLE(9)

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().

Name

       device_enable, device_disable, device_is_enabled — manipulate device enabled flag

See Also

device(9)

Synopsis

#include<sys/param.h>#include<sys/bus.h>voiddevice_enable(device_tdev);

       voiddevice_disable(device_tdev);

       intdevice_is_enabled(device_tdev);

See Also