'\" t .\" Title: pci_enable_device .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: Hardware Interfaces .\" Source: Kernel Hackers Manual 4.11.6 .\" Language: English .\" .TH "PCI_ENABLE_DEVICE" "9" "July 2017" "Kernel Hackers Manual 4\&.11\&" "Hardware Interfaces" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" pci_enable_device \- Initialize device before it\*(Aqs used by a driver\&. .SH "SYNOPSIS" .HP \w'int\ pci_enable_device('u .BI "int pci_enable_device(struct\ pci_dev\ *\ " "dev" ");" .SH "ARGUMENTS" .PP \fIstruct pci_dev * dev\fR .RS 4 PCI device to be initialized .RE .SH "DESCRIPTION" .PP Initialize device before it\*(Aqs used by a driver\&. Ask low\-level code to enable I/O and memory\&. Wake up the device if it was suspended\&. Beware, this function can fail\&. .PP Note we don\*(Aqt actually enable the device many times if we call this function repeatedly (we just increment the count)\&. .SH "COPYRIGHT" .br