DEVICE_PROBE.9 (84306) | DEVICE_PROBE.9 (89124) |
---|---|
1.\" -*- nroff -*- 2.\" 3.\" Copyright (c) 1998 Doug Rabson 4.\" 5.\" All rights reserved. 6.\" 7.\" This program is free software. 8.\" --- 12 unchanged lines hidden (view full) --- 21.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT, 22.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 23.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28.\" | 1.\" -*- nroff -*- 2.\" 3.\" Copyright (c) 1998 Doug Rabson 4.\" 5.\" All rights reserved. 6.\" 7.\" This program is free software. 8.\" --- 12 unchanged lines hidden (view full) --- 21.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT, 22.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 23.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28.\" |
29.\" $FreeBSD: head/share/man/man9/DEVICE_PROBE.9 84306 2001-10-01 16:09:29Z ru $ | 29.\" $FreeBSD: head/share/man/man9/DEVICE_PROBE.9 89124 2002-01-09 11:43:48Z mpp $ |
30.\" 31.Dd June 16, 1998 32.Dt DEVICE_PROBE 9 33.Os 34.Sh NAME 35.Nm DEVICE_PROBE 36.Nd probe for device existence 37.Sh SYNOPSIS --- 7 unchanged lines hidden (view full) --- 45.Er ENXIO 46if it cannot be found. 47If some other error happens during the probe (such as a memory 48allocation failure), an appropriate error code should be returned. 49For 50cases where more than one driver matches a device, a priority value can 51be returned. In this case, success codes are values less than or equal 52to zero with the highest value representing the best match. Failure | 30.\" 31.Dd June 16, 1998 32.Dt DEVICE_PROBE 9 33.Os 34.Sh NAME 35.Nm DEVICE_PROBE 36.Nd probe for device existence 37.Sh SYNOPSIS --- 7 unchanged lines hidden (view full) --- 45.Er ENXIO 46if it cannot be found. 47If some other error happens during the probe (such as a memory 48allocation failure), an appropriate error code should be returned. 49For 50cases where more than one driver matches a device, a priority value can 51be returned. In this case, success codes are values less than or equal 52to zero with the highest value representing the best match. Failure |
53codes are represented by positive values and the regular unix error | 53codes are represented by positive values and the regular Unix error |
54codes should be used for the purpose. 55.Pp 56If a driver returns a success code which is less than zero, it must 57not assume that it will be the same driver which is attached to the 58device. 59In particular, it must not assume that any values stored in 60the softc structure will be available for its attach method and any 61resources allocated during probe must be released and re-allocated --- 25 unchanged lines hidden --- | 54codes should be used for the purpose. 55.Pp 56If a driver returns a success code which is less than zero, it must 57not assume that it will be the same driver which is attached to the 58device. 59In particular, it must not assume that any values stored in 60the softc structure will be available for its attach method and any 61resources allocated during probe must be released and re-allocated --- 25 unchanged lines hidden --- |