---
name: "dev_driver_string"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/dev_driver_string"
---

# dev\_driver\_string(9)

Return a device's driver name, if at all possible

## NAME

dev\_driver\_string - Return a device's driver name, if at all possible

## SYNOPSIS

**const char \* dev\_driver\_string(const struct device \*** *dev***);**

## ARGUMENTS

*dev*

struct device to get the name of

## DESCRIPTION

Will return the device's driver's name if it is bound to a device. If the device is not bound to a driver, it will return the name of the bus it is attached to. If it is not attached to a bus either, an empty string will be returned.

## COPYRIGHT
