DEVICE_ATTACH (9)
Leading comments
Copyright (c) 1998 Doug Rabson All rights reserved. This program is free software. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in...
NAME
DEVICE_ATTACH - attach a deviceSYNOPSIS
In sys/param.h In sys/bus.h Ft int Fn DEVICE_ATTACH device_t devDESCRIPTION
Attach a device to the system after the Fn DEVICE_PROBE method has been called and has indicated that the device exists. The Fn DEVICE_ATTACH method should initialize the hardware and allocate other system resources (such as devfs(5) entries).Devices which implement busses should use this method to probe for the existence of devices attached to the bus and add them as children. If this is combined with the use of bus_generic_attach9 the child devices will be automatically probed and attached.