*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> DEVICE_DETACH (9)              
Title
Content
Arch
Section
 

DEVICE_DETACH(9)

Contents


NAME    [Toc]    [Back]

     DEVICE_DETACH -- detach a device

SYNOPSIS    [Toc]    [Back]

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

     int
     DEVICE_DETACH(device_t dev);

DESCRIPTION    [Toc]    [Back]

     Detach a device.  This can be called if the user is replacing the driver
     software or if a device is about to be physically removed from the system
     (e.g. for pccard devices).

     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    [Toc]    [Back]

     Zero is returned on success, otherwise an appropriate error is returned.

SEE ALSO    [Toc]    [Back]

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

AUTHORS    [Toc]    [Back]

     This man page was written by Doug Rabson.


FreeBSD 5.2.1			 June 16, 1998			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
pthread_detach IRIX detach a thread
pthread_detach FreeBSD detach a thread
pthread_detach OpenBSD detach a thread
usbd FreeBSD supervise USB attach/detach
cpusetDetachPID IRIX detach a specific process from a cpuset
shmdt FreeBSD attach or detach shared memory
shmat FreeBSD attach or detach shared memory
shmdt Tru64 Detach a shared memory region
fdetach IRIX detach a name from a STREAMS-based file descriptor
fdetach IRIX detach a name from a STREAMS-based file descriptor
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service