Computing.Net > Forums > Linux > User space to PCI Memory

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

User space to PCI Memory

Reply to Message Icon

Name: basu_arani
Date: May 2, 2004 at 01:31:23 Pacific
OS: Linux
CPU/Ram: Pentium3/256
Comment:

Hi There,

I am developing a driver for a communication card in linux. The working of the driver is as follows:

The data has to be transferred from user space memory to some memory on a particular PCI card. This card is having the PLX PCI 9054 with a DMA controller.

If I have to pass the data from the user program to the PCI Memory, the data has to be first passed from user space to the kernel space and then from there to the PCI Memory. This is resulting in a lot of bandwidth wastage.

Is it possible for a kernel module to access the user space memory directly, so that I can transfer the data directly from the userspace to the PCI memory.

Thank You.




Sponsored Link
Ads by Google

Response Number 1
Name: Wolfbone
Date: May 2, 2004 at 10:02:37 Pacific
Reply:

Do you mean something like mmio as used by ALSA and eg. the /usr/src/linux/drivers/net/8139too.c driver? I've only had experience of mmap (info Libc, /usr/include/sys/mman.h) from the user side so I couldn't tell you how to write the driver-side mapping but there are plenty of examples in the kernel source.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: User space to PCI Memory

D Driver - user space to kernel space www.computing.net/answers/linux/d-driver-user-space-to-kernel-space/12340.html

adding space to linux partition www.computing.net/answers/linux/adding-space-to-linux-partition/12307.html

PCI memory access www.computing.net/answers/linux/pci-memory-access/11333.html