device_get_driver(9)

device_get_driver9

Access the current driver of a device

Usage

#include <sys/param.h>

#include <sys/bus.h>

driver_t *

device_get_driver(device_t dev);

Overview

The current driver associated with the device is returned. If the device has no driver, 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.