---
name: "device_set_driver"
section: "9freebsd"
platform: "linux"
package: "freebsd-manpages"
version: "12.2-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/device_set_driver/9freebsd"
---

# device\_set\_driver(9freebsd)

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 bus.

## SEE ALSO

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

## AUTHORS

This manual page was written by M. Warner Losh.
