Man page 9 : device_attach
"DEVICE_ATTACH" "9" "August 2013" "Kernel Hackers Manual 3.10" "Device drivers infrastructure"
Page d'accueil du man
Cette page de documentation est issue d'une conversion automatique de developpez.com.
Les traductions proviennent des sites Debian, Linux Kernel et du projet Perkamon.
N'hésitez pas à laisser vos suggestions, avis ou commentaires : 12 commentaires
.
Article lu fois.
Publié le 27 août 2013Â
1. NAME▲
device_attach - try to attach device to a driver.
2. SYNOPSIS ▲
int device_attach(struct device * dev );
3. ARGUMENTS ▲
4. DESCRIPTION ▲
Walk the list of drivers that the bus has and call driver_probe_device for each pair. If a compatible pair is found, break out and return.
Returns 1 if the device was bound to a driver; 0 if no matching driver was found; -ENODEV if the device is not registered.
When called for a USB interface, dev->parent lock must be held.
5. COPYRIGHT ▲
Le contenu de cet article est rédigé par Developpez.com et est mis à disposition selon les termes de la
Licence Creative Commons Attribution 3.0 non transposé.
Les logos Developpez.com, en-tête, pied de page, css, et look & feel de l'article sont Copyright © 2013 Developpez.com.