I just can't fill a buffer in userland and expect it to be sent via Zero Copy.
Sure you can, create a temporary file, mmap() it into your address space, use that mmap()'d area as a local buffer and use sendfile() on that file to send the data over the socket.
Or create a file on ramfs and sendfile(2) it.
Jeff
- : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html