---
name: "driver_attach"
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/driver_attach"
---

# driver\_attach(9)

try to bind driver to devices.

## NAME

driver\_attach - try to bind driver to devices.

## SYNOPSIS

**int driver\_attach(struct device\_driver \*** *drv***);**

## ARGUMENTS

*drv*

driver.

## DESCRIPTION

Walk the list of devices that the bus has on it and try to match the driver with each one. If **driver\_probe\_device** returns 0 and the *dev*-\>driver is set, we've found a compatible pair.

## COPYRIGHT
