Hi,<br>
<br>
I am new to linux device driver development and I'm trying to learn the<br>
memory mapping. Currently I am trying to memory map a dma buffer allocated using pci_alloc_consistent() function. <br>
<br>
Now what exactly I want is that whenever I map a char device from user 
space program, let say /dev/test, internally that DMA buffer gets memory
 mapped to the user space? Also what should I pass as the length 
parameter in the mmap() function? <br>
<br>
Thanks in advance<br>
Ravi Gupta