From e2689a926c8bedb36b365e21feeb9230e5c19e9e Mon Sep 17 00:00:00 2001 From: imp Date: Mon, 11 Sep 2006 22:17:18 +0000 Subject: Add note about identify routines needing to use BUS_ADD_CHILD rather than device_add_child. The latter is only for busses adding children, not children drivers telling a bus that they have an instance... --- share/man/man9/device_add_child.9 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/share/man/man9/device_add_child.9 b/share/man/man9/device_add_child.9 index 09f2005..ba162d0 100644 --- a/share/man/man9/device_add_child.9 +++ b/share/man/man9/device_add_child.9 @@ -108,9 +108,15 @@ have already added the instance. Authors of bus drivers must likewise be careful when adding children when they are loaded and unloaded to avoid duplication of children devices. +.Pp +Identify routines should use +.Xr BUS_ADD_CHILD 9 +instead of +.Xr device_add_child 9 . .Sh RETURN VALUES The new device if successful, NULL otherwise. .Sh SEE ALSO +.Xr BUS_ADD_CHILD 9 , .Xr device 9 , .Xr device_find_child 9 , .Xr DEVICE_IDENTIFY 9 -- cgit v1.1