linux man page for device_detach

Query: device_detach

OS: linux

Section: 9

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

DEVICE_DETACH(9)					   BSD 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 driver software or if a device is about to be physically removed from the system (e.g. for pccard(4) 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
Zero is returned on success, otherwise an appropriate error is returned. SEE ALSO
pccard(4), device(9), DEVICE_ATTACH(9), DEVICE_IDENTIFY(9), DEVICE_PROBE(9), DEVICE_SHUTDOWN(9) AUTHORS
This manual page was written by Doug Rabson. BSD
June 16, 1998 BSD
Related Man Pages
device_attach(9) - freebsd
device_detach(9) - freebsd
device_detach(9) - hpux
device_attach(9) - osx
device_detach(9) - osx
Similar Topics in the Unix Linux Community
Simple rules of the UNIX.COM forums:
User Guide: Posting in the Emergency Forum
Rules for Homework &amp; Coursework Questions Forum
Forum Video Tutorial: How to Use Code Tags
Merry Christmas!