SIMPLE SOLUTIONS

DEVICE_DETACH(9FREEBSD) - Linux man page online | System kernel interfaces

Detach a device.

Chapter
June 16, 1998
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
This manual Reference Other manuals
DEVICE_DETACH(9freebsd) referred by BUS_CHILD_DETACHED(9freebsd) | bus_generic_detach(9freebsd) | DEVICE_ATTACH(9freebsd) | device_delete_child(9freebsd) | DEVICE_IDENTIFY(9freebsd) | DEVICE_PROBE(9freebsd) | DEVICE_SHUTDOWN(9freebsd) | driver(9freebsd) | pci(9freebsd) | pci_alloc_msi(9freebsd) | pci_alloc_msix(9freebsd) | pci_disable_busmaster(9freebsd) | pci_disable_io(9freebsd) | pci_enable_busmaster(9freebsd) | pci_enable_io(9freebsd) | pci_find_bsf(9freebsd) | pci_find_cap(9freebsd) | pci_find_dbsf(9freebsd) | pci_find_device(9freebsd) | pci_find_extcap(9freebsd)
refer to device(9freebsd) | DEVICE_ATTACH(9freebsd) | DEVICE_IDENTIFY(9freebsd) | DEVICE_PROBE(9freebsd) | DEVICE_SHUTDOWN(9freebsd) | pccard(4freebsd)
Download raw manual
Main page BSD Kernel Developer's Manual (+1909) BSD (+3984) № 9 (+1939)
Go top