LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 02-03-2010, 01:42 PM   #1
jxu1106
LQ Newbie
 
Registered: Feb 2010
Posts: 2

Rep: Reputation: 0
PCI Device Driver Question


Hi,

I am writing a PCI device driver on Linux (CentOS). After I load (insmod) my driver, kernel seems to create a link in /sys/bus/pci/devices

0000:06:00.0 -> ../../../devices/pci0000:00/0000:00:03.0/altpcie

altpcie is my device driver name. The altpcie folder is non-exist. Driver seems to be working fine. And I can successfully unload and load my driver many times. But, the lspci or setpci commands will fail with following error,

lspci: Cannot open /sys/bus/pci/devices/0000:06:00.0/resource: No such file or directory

Any help will be appreciated.


Jay Xu
 
Old 02-03-2010, 06:51 PM   #2
jxu1106
LQ Newbie
 
Registered: Feb 2010
Posts: 2

Original Poster
Rep: Reputation: 0
[solved] pci device driver question

Resolved

Quote:
Originally Posted by jxu1106 View Post
Hi,

I am writing a PCI device driver on Linux (CentOS). After I load (insmod) my driver, kernel seems to create a link in /sys/bus/pci/devices

0000:06:00.0 -> ../../../devices/pci0000:00/0000:00:03.0/altpcie

altpcie is my device driver name. The altpcie folder is non-exist. Driver seems to be working fine. And I can successfully unload and load my driver many times. But, the lspci or setpci commands will fail with following error,

lspci: Cannot open /sys/bus/pci/devices/0000:06:00.0/resource: No such file or directory

Any help will be appreciated.


Jay Xu
 
Old 02-24-2010, 05:20 AM   #3
infosrig
LQ Newbie
 
Registered: Feb 2010
Location: Tamil Nadu, India
Distribution: CentOs 5.5
Posts: 28

Rep: Reputation: 0
Quote:
Originally Posted by jxu1106 View Post
Resolved
Pls say how to read the device ID in windows
 
Old 02-24-2010, 05:21 AM   #4
infosrig
LQ Newbie
 
Registered: Feb 2010
Location: Tamil Nadu, India
Distribution: CentOs 5.5
Posts: 28

Rep: Reputation: 0
pls explain how to start writing divice drivers
 
Old 04-28-2017, 01:03 AM   #5
pengosunvidia
LQ Newbie
 
Registered: Apr 2017
Posts: 2

Rep: Reputation: Disabled
Smile lspci: Cannot open /sys/bus/pci/devices/38b3:00:00.0/resource: No such file or directory

Quote:
Originally Posted by jxu1106 View Post
Resolved
I am suffering from the same problem.

Can you share how did you solve the issue?

Thank you.
 
  


Reply



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
How can I write a pci device driver??? hrmb Linux - Kernel 1 01-01-2010 04:47 PM
PCI Device Driver development and deployment amit1947 Linux - Hardware 1 05-27-2009 06:54 PM
What is the Linux difference between PCIE and PCI device driver? jbreaka4lyfe Linux - General 0 06-04-2008 02:54 PM
PCI device driver for 64bit OS kushneeraj Linux - Kernel 0 08-07-2006 08:31 PM
PCI Device Driver bozkan Linux - Software 0 10-20-2004 08:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 10:54 PM.

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