kernel driver/ user program

my pci card does dma into a kernel space .my driver(network interface) which contains a handler to handle the dma requests from the card. I want to import the data into my user program and process it befor the next interrupt occurs and so on ? How do I link ythe two ? Which topics should I be looking into ?

-D

Reply to
dhruvakshad
Loading thread data ...

If you want to directly access the DMA memory from user space I suppose you should do a driver that on "open" requests a contiguous memory range, on "read" has this mapped to an address range of the calling process and output the user land address to the process, and on "release" releases the memory.

-Michael

Reply to
Michael Schnell

Reply to
dhruvakshad

mmap

Reply to
Max

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.