Be explicit that a driver may assume softc is preserved when returning 0

This commit is contained in:
Warner Losh 2004-08-11 21:52:31 +00:00
parent 55dfe3e212
commit 13dbaef46a

View File

@ -72,6 +72,8 @@ routine is called.
If a success code of zero is
returned, the driver can assume that it will be the one attached, but
must not hold any resources when the probe routine returns.
A driver may assume that the softc is preserved when it returns
a success code of zero.
.Sh RETURN VALUES
A value equal to or less than zero indicates success, greater than
zero indicates an error (errno).