devclass_get_softc(9)

devclass_get_softc9

Translate unit number to driver private structure

Usage

#include <sys/param.h>

#include <sys/bus.h>

void *

devclass_get_softc(devclass_t dc, int unit);

Overview

This function retrieves the driver private instance variables for the device with the given unit number and returns it.

Return values

If the device exists, its driver-private variables are returned, otherwise NULL is returned.

Authors

This manual page was written by Doug Rabson.

From freebsd-manpages 6.0-5 in Debian 4.0 (Etch). Parsed by carta from the page's mdoc source.