devclass_get_device(9)

devclass_get_device9

Translate unit number to device

Usage

#include <sys/param.h>

#include <sys/bus.h>

device_t

devclass_get_device(devclass_t dc, int unit);

Overview

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.

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.