Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

device_probe_and_attach — initialise a device

Authors

       This manual page was written by Doug Rabson.

Debian                                            June 16, 1998                       DEVICE_PROBE_AND_ATTACH(9)

Description

       This  function  is  called  during  autoconfiguration  to initialise the devices in the system.  For each
       device, the DEVICE_PROBE(9) method of each  suitable  driver  is  called  and  if  a  probe  succeeds,  a
       description  of  the  device  is  printed  and  the  DEVICE_ATTACH(9) method is called.  If the device is
       disabled using device_disable(9) then it will not be probed.

Name

       device_probe_and_attach — initialise a device

Return Values

       Zero is returned on success, otherwise an appropriate error is returned.

See Also

device(9), driver(9)

Synopsis

#include<sys/param.h>#include<sys/bus.h>intdevice_probe_and_attach(device_tdev);

See Also