devclass_get_softc — translate unit number to driver private structure
Contents
Description
This function retrieves the driver private instance variables for the device with the given unit number
and returns it.
Name
devclass_get_softc — translate unit number to driver private structure
Return Values
If the device exists, its driver-private variables are returned, otherwise NULL is returned.
See Also
device(9)
Synopsis
#include<sys/param.h>#include<sys/bus.h>void*devclass_get_softc(devclass_tdc, intunit);
