Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
DEVICE_ENABLE(9)	 BSD Kernel Developer's	Manual	      DEVICE_ENABLE(9)

NAME
     device_enable, device_disable, device_is_enabled -- manipulate device en-
     abled flag

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	pre-
     vent a destructive	or time	consuming probe	attempt).  To disable a	de-
     vice, 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.

BSD				 June 16, 1998				   BSD

NAME | SYNOPSIS | DESCRIPTION | SEE ALSO | AUTHORS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=device_enable&sektion=9&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help