*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: config_attach | Section: 9 | Source: OpenBSD | File: config_attach.9
CONFIG_ATTACH(9) FreeBSD Kernel Developer's Manual CONFIG_ATTACH(9) NAME config_attach, config_detach, config_detach_children - attach and detach devices SYNOPSIS #include <sys/param.h> #include <sys/device.h> struct device * config_attach(struct device *parent, void *cf, void *aux, cfprint_t print); int config_detach(struct device *dev, int flags); int config_detach_children(struct device *parent, int flags); DESCRIPTION The config_attach() function attaches a found device. Memory is allocated for the softc structure and the driver's attach function is called according to the configuration table. If successful, config_attach() returns the softc. If unsuccessful, it returns NULL. The config_detach() function is called by the parent to detach the child device. The second argument flags contains detachment flags: #define DETACH_FORCE 0x01 /* Force detachment; hardware gone */ #define DETACH_QUIET 0x02 /* Don't print a notice */ CONTEXT config_detach() is always called from process context, allowing tsleep(9) to be called while the device detaches itself (to deal with processes which have a device open). RETURN VALUES config_detach() returns zero if successful and an error code otherwise. SEE ALSO config_found(9) FreeBSD 14.1-RELEASE-p8 December 5, 2014 FreeBSD 14.1-RELEASE-p8

Navigation Options