tail head cat sleep
QR code linking to this page

Manual Pages  — DEVICE_PROBE_AND_ATTACH

NAME

device_probe_and_attach – initialise a device

CONTENTS

SYNOPSIS

#include <sys/param.h>
#include <sys/bus.h>

int
device_probe_and_attach(device_t dev);

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.

RETURN VALUES

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

SEE ALSO

device(9), driver(9)

AUTHORS

This manual page was written by Doug Rabson.

DEVICE_PROBE_AND_ATTACH (9) June 16, 1998

tail head cat sleep
QR code linking to this page


Please direct any comments about this manual page service to Ben Bullock. Privacy policy.

"I liken starting one's computing career with Unix, say as an undergraduate, to being born in East Africa. It is intolerably hot, your body is covered with lice and flies, you are malnourished and you suffer from numerous curable diseases. But, as far as young East Africans can tell, this is simply the natural condition and they live within it. By the time they find out differently, it is too late. They already think that the writing of shell scripts is a natural act."
— Ken Pier, Xerox PARC