tail head cat sleep
QR code linking to this page

Manual Pages  — DEVCLASS_GET_DEVICE

NAME

devclass_get_device – translate unit number to device

CONTENTS

SYNOPSIS

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

device_t
devclass_get_device(devclass_t dc, int unit);

DESCRIPTION

This function retrieves the device instance with the given unit number and returns it.

RETURN VALUES

If the device exists, it is returned, otherwise NULL is returned.

SEE ALSO

devclass(9), device(9)

AUTHORS

This manual page was written by Doug Rabson.

DEVCLASS_GET_DEVICE (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.

An ASCII character walks into a bar and orders a double. "Having a bad day?" asks the barman. "Yeah, I have a parity error," replies the ASCII character. The barman says, "Yeah, I thought you looked a bit off."