Re: Accessing PCI registers from user space

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

 



I can't suggest anything other than the ffffffed is -19 wich is ENODEV.
I know other functions, like filp_open() that return pointers will also
return error codes casted to pointers.  I hope that helps.

Jonathan


On 28 Aug 2002, anand kumar wrote:

> Hi,
>
> I am looking for a way by which the application code can access
> the
> PCI configuration registers.I know that we can ioremap the device
> address to kernel space and the user can mmap it.
> Is there any other way to do it other than calling mmap from
> application.
> For eg: can we make use of an ioctl and in that ioctl issue a call
> to
> do_mmap2 ----> do_mmap_pgoff? Can we pass the ioremapped address
> to
> do_mmap2 call?
> The problem with the above approach is that i always get ffffffed
> as the mapped address which does not look like a valid user space
> virtual
> address.
> Pl suggest me if there is a better approach.
>
> Rgds
> Anand
>
>
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
>
>

--
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