Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I am writing a PCI device driver. 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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2010
    Posts
    3

    PCI Device Driver


    Hi,

    I am writing a PCI device driver. 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.

    Thanks


    Jay Xu

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Sorry, but duplicate threads are not allowed on the forums:

    http://www.linuxforums.org/forum/lin...ums-rules.html

    Please feel free to continue any discussion in your other thread on this subject.
    oz

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •