devclass_get_device — translate unit number to device
Contents
Description
This function retrieves the device instance with the given unit number and returns it.
Name
devclass_get_device — translate unit number to device
Return Values
If the device exists, it is returned, otherwise NULL is returned.
See Also
devclass(9), device(9)
Synopsis
#include<sys/param.h>#include<sys/bus.h>device_tdevclass_get_device(devclass_tdc, intunit);
