From 9230fba2a4231965687d2e590f8d6ad01a2fa3a8 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 28 Feb 2011 01:24:01 +0000 Subject: [PATCH] doc: more notes for IO.vmsplice HALP! --- ext/io_splice/io_splice_ext.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ext/io_splice/io_splice_ext.c b/ext/io_splice/io_splice_ext.c index dc1e74d..a0ba381 100644 --- a/ext/io_splice/io_splice_ext.c +++ b/ext/io_splice/io_splice_ext.c @@ -394,7 +394,14 @@ static void advance_vmsplice_args(struct vmsplice_args *a, long n) * +fd+ must be the writable end of a pipe. * * This may allow the kernel to avoid data copies in some cases. - * but is (probably) of limited usefulness in Ruby. + * but is (probably) of limited usefulness in Ruby. If you have + * use cases or ideas for making this more useful for Ruby users, + * please tell us at ruby.io.splice@librelist.com! + * + * Also consider the "sendfile" RubyGem or IO.copy_stream in Ruby 1.9 + * if you want to do zero-copy file transfers to pipes or sockets. As + * of Linux 2.6.33, sendfile(2) can copy to any output descriptor, + * not just sockets. * * See manpage for full documentation: * http://kernel.org/doc/man-pages/online/pages/man2/vmsplice.2.html -- 2.11.4.GIT