DEVICE_PROBE.9 (4e86fcacf69e8dac21f67db61babdcae80903dc2) | DEVICE_PROBE.9 (b92a189eb9b32f7e9db74343d46434b554a67d04) |
---|---|
1.\" -*- nroff -*- 2.\" 3.\" Copyright (c) 1998 Doug Rabson 4.\" 5.\" All rights reserved. 6.\" 7.\" This program is free software. 8.\" --- 29 unchanged lines hidden (view full) --- 38.Sh SYNOPSIS 39.Fd #include <sys/param.h> 40.Fd #include <sys/bus.h> 41.Ft int 42.Fn DEVICE_PROBE "device_t dev" 43.Sh DESCRIPTION 44.Pp 45This device method should probe to see if the device is present. | 1.\" -*- nroff -*- 2.\" 3.\" Copyright (c) 1998 Doug Rabson 4.\" 5.\" All rights reserved. 6.\" 7.\" This program is free software. 8.\" --- 29 unchanged lines hidden (view full) --- 38.Sh SYNOPSIS 39.Fd #include <sys/param.h> 40.Fd #include <sys/bus.h> 41.Ft int 42.Fn DEVICE_PROBE "device_t dev" 43.Sh DESCRIPTION 44.Pp 45This device method should probe to see if the device is present. |
46It should return 0 if the device exists, ENXIO if it cannot be 47found. | 46It should return 0 if the device exists, 47.Er ENXIO 48if it cannot be found. |
48If some other error happens during the probe (such as a memory 49allocation failure), an appropriate error code should be returned. 50For 51cases where more than one driver matches a device, a priority value can 52be returned. In this case, success codes are values less than or equal 53to zero with the highest value representing the best match. Failure 54codes are represented by positive values and the regular unix error 55codes should be used for the purpose. --- 30 unchanged lines hidden --- | 49If some other error happens during the probe (such as a memory 50allocation failure), an appropriate error code should be returned. 51For 52cases where more than one driver matches a device, a priority value can 53be returned. In this case, success codes are values less than or equal 54to zero with the highest value representing the best match. Failure 55codes are represented by positive values and the regular unix error 56codes should be used for the purpose. --- 30 unchanged lines hidden --- |