DEVICE_PROBE.9 (32eef9aeb1f39a1623cea55da147c89abbd5b9a5) | DEVICE_PROBE.9 (b82af3f5e42ab9d848c572b3384fb389fd855ecc) |
---|---|
1.\" -*- nroff -*- 2.\" 3.\" Copyright (c) 1998 Doug Rabson 4.\" 5.\" All rights reserved. 6.\" 7.\" This program is free software. 8.\" --- 36 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 | 1.\" -*- nroff -*- 2.\" 3.\" Copyright (c) 1998 Doug Rabson 4.\" 5.\" All rights reserved. 6.\" 7.\" This program is free software. 8.\" --- 36 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 --- |