Hi ,<div><br><div>I get the same problem as in</div><div><a href="http://lists.ozlabs.org/pipermail/linuxppc-dev/2009-November/077394.html">http://lists.ozlabs.org/pipermail/linuxppc-dev/2009-November/077394.html</a></div>
<div><br></div><div>posted by <span class="Apple-style-span" style="font-family: monospace; font-size: medium; white-space: pre; ">Jonathan.</span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: medium; white-space: pre; "><br>
</span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: medium; white-space: pre; ">One solution suggested is using get_user_pages(), which give a pointer of user space buffer to the kernel module to DMA( as I got it)</span></div>
<div><span class="Apple-style-span" style="font-family: monospace; font-size: medium; white-space: pre; ">But the code in teh above link tries to get the kernel buffer pointer in to the user space. What I want to know is what's wrong/what modifications should be done to the above code to achieve this? Is this a bad aproach to access the DMA buffer in user space?</span></div>
<div><span class="Apple-style-span" style="font-family: monospace; font-size: medium; white-space: pre; "><br></span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: medium; white-space: pre; ">Thanx in advance.</span></div>
<div><span class="Apple-style-span" style="font-family: monospace; font-size: medium; white-space: pre; "><br></span></div></div>