BUS_ADD_CHILD (9)
Leading comments
Copyright (c) 2004 M. Warner Losh. 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 disclaime...
NAME
BUS_ADD_CHILD - add a device node to the tree with a given prioritySYNOPSIS
In sys/param.h In sys/bus.h Ft int Fn BUS_ADD_CHILD device_t dev int order const char *name int unitDESCRIPTION
The Fn BUS_ADD_CHILD method is used by the driver identify routine to add devices to the tree. Please see device_add_child9 for more details. The interface is the same as device_add_child9 however, the bus' Fn BUS_ADD_CHILD is called.Busses implementing Fn BUS_ADD_CHILD should insert the device into the tree using device_add_child9 before adding things such as their own ivars and resource lists to the device.