man.bsd.lv manual page server

Manual Page Search Parameters

DEVCLASS_GET_DEVICE(9) Kernel Developer's Manual DEVCLASS_GET_DEVICE(9)

devclass_get_devicetranslate unit number to device

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

device_t
devclass_get_device(devclass_t dc, int unit);

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

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

devclass(9), device(9)

This manual page was written by Doug Rabson.

June 16, 1998 FreeBSD-12.0