diff options
author | sheldonh <sheldonh@FreeBSD.org> | 2000-03-02 14:54:02 +0000 |
---|---|---|
committer | sheldonh <sheldonh@FreeBSD.org> | 2000-03-02 14:54:02 +0000 |
commit | 244b8ead7d31895ea1d7cfb075f4f7b33df35b0f (patch) | |
tree | 2643b52af6138b0f24a698abf3673abbbf78fc7d /share/man/man9/DEVICE_PROBE.9 | |
parent | b751643913f37cd82cb0231b0c05564aad5a23b4 (diff) | |
download | FreeBSD-src-244b8ead7d31895ea1d7cfb075f4f7b33df35b0f.zip FreeBSD-src-244b8ead7d31895ea1d7cfb075f4f7b33df35b0f.tar.gz |
Remove more single-space hard sentence breaks.
Diffstat (limited to 'share/man/man9/DEVICE_PROBE.9')
-rw-r--r-- | share/man/man9/DEVICE_PROBE.9 | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/share/man/man9/DEVICE_PROBE.9 b/share/man/man9/DEVICE_PROBE.9 index 8de3c49..f643d39 100644 --- a/share/man/man9/DEVICE_PROBE.9 +++ b/share/man/man9/DEVICE_PROBE.9 @@ -44,8 +44,10 @@ .Pp This device method should probe to see if the device is present. It should return 0 if the device exists, ENXIO if it cannot be -found. If some other error happens during the probe (such as a memory -allocation failure), an appropriate error code should be returned. For +found. +If some other error happens during the probe (such as a memory +allocation failure), an appropriate error code should be returned. +For cases where more than one driver matches a device, a priority value can be returned. In this case, success codes are values less than or equal to zero with the highest value representing the best match. Failure @@ -54,15 +56,18 @@ codes should be used for the purpose. .Pp If a driver returns a success code which is less than zero, it must not assume that it will be the same driver which is attached to the -device. In particular, it must not assume that any values stored in +device. +In particular, it must not assume that any values stored in the softc structure will be available for its attach method and any resources allocated during probe must be released and re-allocated -if the attach method is called. If a success code of zero is +if the attach method is called. +If a success code of zero is returned, the driver can assume that it will be the one attached. .Pp 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 +children. +If this is combined with the use of .Xr bus_generic_attach 9 the child devices will be automatically probed and attached. .Sh RETURN VALUES |