Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

devclass_get_device — translate unit number to device

Authors

       This manual page was written by Doug Rabson.

Debian                                            June 16, 1998                           DEVCLASS_GET_DEVICE(9)

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);

See Also