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

# device\_get\_driver(9freebsd)

access the current driver of a device

## NAME

**device\_get\_driver** – access the current driver of a device

## SYNOPSIS

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

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

*driver\_t* *\**\

**device\_get\_driver**(*device\_t dev*);

## DESCRIPTION

The current driver associated with the device is returned. If the device has no driver, NULL is returned.

## SEE ALSO

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

## AUTHORS

This manual page was written by Doug Rabson.
