Re: PCI Driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--- Kirill Messel <kirill.messel@mtu-net.ru> wrote:
> Hi,
> Ok , i have undestood, but from user space i can't use
> pci_find_device().
> If i directly in module write, read pci register it is work. How
> can i 
> read this data from kernel space to user?
> 

I don't think I'm quite understanding your question...

pci_find_device() is meant to be used entirely from kernel space.

Why would you like to send its returned data to user space?

Anyhow, if you want to generate a report and display it in user-land,
 it's your code.  See
http://www.xml.com/ldd/chapter/book/ch03.html#t8.
What you want is copy_to_user().

Harmony,

--Christine


__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux