NAME

devclass_get_devicetranslate unit number to device

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.

Recommended readings

Pages related to devclass_get_device you should read also:

Questions & Answers

Helpful answers and articles about devclass_get_device you may found on these sites:
Stack Overflow Server Fault Super User Unix & Linux Ask Ubuntu Network Engineering DevOps Raspberry Pi Webmasters Google Search