Thread (3 messages) flat view 3 messages, 2 authors, 2016-08-19

vmsplice returned "bad address"

From: Teoh Choon Zone <hidden>
Date: 2016-08-18 16:19:47

I have a driver which will dma_alloc a CMA region and return the address to
my user space program, the program then will mmap /dev/mem according to the
address offset. I was trying to vmsplice and splice it into my socket
buffer, but the vmsplice always return "bad address". Anybody knows why? I
attach my user space code for your perusal.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160819/4d2d3bde/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vmsplice_server.c
Type: text/x-csrc
Size: 2390 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160819/4d2d3bde/attachment.bin 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help