devclass_get_device(9) translate unit number to device

SYNOPSIS

In sys/param.h In sys/bus.h Ft device_t Fn 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.

AUTHORS

This manual page was written by An Doug Rabson .