Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-12-2009, 04:30 PM   #1
LQ Newbie
Registered: May 2009
Posts: 11

Rep: Reputation: 0
Question In pci.h in 2.6 .27.24; static inline int pci_enable_device returns error -EIO

I am writing a pci device driver, as per "LINUX DEVICE DRIVERS"
by Corbet, Alessandro et al. In Chapter 12. section entitled
"Enabling the PCI device"

" IN the probe function for the PCI driver, before the driver can access any resource (I/O region or interrupt)of the PCI device, the driver must call the function pci_enaable_device function."

In pci.h this inline function returns -EIO.


How does one therefore enable a PCI device???


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ioread32 returns 0xffffffff; pci driver niteshg Linux - General 3 12-02-2009 04:48 AM
Linking error. static const int kerenLinuxForum Linux - Software 1 08-28-2008 07:18 AM
invalid types ‘int[int]’ for array subscript medha Programming 16 08-25-2006 08:30 AM
invalid types int[int] for array subscript scuzzman Programming 2 11-16-2004 09:34 PM
anyone got an InnoVision EIO AP-1680 ATA133 RAID PCI controller card? Jestrik Linux - Hardware 0 12-26-2003 09:50 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:31 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration