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

FreeBSD Manual Pages

  
 
  

home | help
DEVICE_DETACH(9)	   Kernel Developer's Manual	      DEVICE_DETACH(9)

NAME
       DEVICE_DETACH --	detach a device

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

       int
       DEVICE_DETACH(device_t dev);

DESCRIPTION
       Detach  a device.  This can be called if	the user is replacing the dri-
       ver software or if a device is about to be physically removed from  the
       system.

       The  method should deallocate any system	resources allocated during the
       DEVICE_ATTACH(9)	method and reset the hardware to a sane	 state	(i.e.,
       disable interrupts etc.)

RETURN VALUES
       Zero  is	 returned  on  success,	 otherwise an appropriate error	is re-
       turned.

SEE ALSO
       device(9),   DEVICE_ATTACH(9),	DEVICE_IDENTIFY(9),   DEVICE_PROBE(9),
       DEVICE_SHUTDOWN(9)

AUTHORS
       This manual page	was written by Doug Rabson.

FreeBSD	15.0			 June 16, 1998		      DEVICE_DETACH(9)

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

home | help