From 4eebf565272fc22fc5ad7eb4ecebafbbe6aa5ede Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 5 Mar 2004 22:21:18 +0000 Subject: [PATCH] Add warning about loading/unloading drivers and identify --- share/man/man9/DEVICE_IDENTIFY.9 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/share/man/man9/DEVICE_IDENTIFY.9 b/share/man/man9/DEVICE_IDENTIFY.9 index db36c0b34ab..04802ced106 100644 --- a/share/man/man9/DEVICE_IDENTIFY.9 +++ b/share/man/man9/DEVICE_IDENTIFY.9 @@ -54,6 +54,13 @@ with the kernel by calling for each resource (refer to .Xr bus_set_resource 9 for more information). +.Pp +Since the device tree and the device driver tree are disjoint, the +.Nm +routine needs to take this into account. +If you load and unload your device driver that has the identify +routine, the child node has the potential for adding the same node +multiple times. .Sh EXAMPLES The following pseudo-code shows an example of a function that probes for a piece of hardware and registers it and its resource