aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/bus_if.m
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2002-09-11 04:22:10 +0000
committerWarner Losh <imp@FreeBSD.org>2002-09-11 04:22:10 +0000
commit74014b7f0acd542fb53e64bc8cfb8f5ce3d48499 (patch)
tree4fa8cde6f7cb3ff8a15b3fadd137f10314fc2632 /sys/kern/bus_if.m
parent4f39d5d511be99376eff7af895c3650381dc02b6 (diff)
downloadsrc-74014b7f0acd542fb53e64bc8cfb8f5ce3d48499.tar.gz
src-74014b7f0acd542fb53e64bc8cfb8f5ce3d48499.zip
Clarify the return value from child_present.
Notes
Notes: svn path=/head/; revision=103209
Diffstat (limited to 'sys/kern/bus_if.m')
-rw-r--r--sys/kern/bus_if.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/kern/bus_if.m b/sys/kern/bus_if.m
index c5350beaf9c9..7b8a13501e9b 100644
--- a/sys/kern/bus_if.m
+++ b/sys/kern/bus_if.m
@@ -247,6 +247,13 @@ METHOD struct resource_list * get_resource_list {
#
# Is the hardware described by _child still attached to the system?
#
+# This method should return 0 if the device is not present. It should
+# return -1 if it is present. Any errors in determining should be
+# returned as a normal errno value. Client drivers are to assume that
+# the device is present, even if there is an error determining if it is
+# there. Busses are to try to avoid returning errors, but newcard will return
+# an error if the device fails to implement this method.
+#
METHOD int child_present {
device_t _dev;
device_t _child;