---
name: "device_get_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_get_driver"
---

# device\_get\_driver(9)

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.
