logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

DEVICE_DETACH — detach a device

Authors

       This manual page was written by Doug Rabson.

Debian                                            June 16, 1998                                 DEVICE_DETACH(9)

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.)

Name

       DEVICE_DETACH — detach a device

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)

Synopsis

#include<sys/param.h>#include<sys/bus.h>intDEVICE_DETACH(device_tdev);

See Also