device_set_driver(9)

device_set_driver9

Associate a specific driver with a device node in the tree

Usage

#include <sys/param.h>

#include <sys/bus.h>

void

device_set_driver(device_t dev, driver_t *driver);

Overview

This function associates a specific driver with a given device node in the tree. It is typically used in DEVICE_IDENTIFY(9) functions to add devices to a bus that does not support doing so automatically, such as the isa(4) bus.

Authors

This manual page was written by M. Warner Losh.

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