---
name: "device_set_driver"
section: "9"
platform: "linux"
package: "freebsd-manpages"
version: "6.0-5"
release: "Debian 4.0 (Etch)"
platforms: ["linux", "freebsd"]
url: "https://new.carta.tech/device_set_driver"
---

# device\_set\_driver(9)

associate a specific driver with a device node in the tree

## NAME

**device\_set\_driver** – associate a specific driver with a device node in the tree

## SYNOPSIS

**#include \<sys/param.h\>**

**#include \<sys/bus.h\>**

*void*\

**device\_set\_driver**(*device\_t dev*, *driver\_t \*driver*);

## DESCRIPTION

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

## SEE ALSO

[device(9)](/device/9.md)

## AUTHORS

This manual page was written by M. Warner Losh.
