From: Nikolaus Rath Date: Thu, 14 Jan 2016 17:23:18 +0000 (-0800) Subject: Extend write_buf documentation X-Git-Tag: fuse-3.0.0pre0~66 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=773aa34dfc3c38b8d7988a18334eb611a47dccd7;p=qemu-gpiodev%2Flibfuse.git Extend write_buf documentation --- diff --git a/include/fuse_lowlevel.h b/include/fuse_lowlevel.h index 3cc9db5..32908cb 100644 --- a/include/fuse_lowlevel.h +++ b/include/fuse_lowlevel.h @@ -932,6 +932,11 @@ struct fuse_lowlevel_ops { * kernel supports splicing from the fuse device, then the * data will be made available in pipe for supporting zero * copy data transfer. + * + * buf->count is guaranteed to be one (and thus buf->idx is + * always zero). The write_buf handler must ensure that + * bufv->off is correctly updated (reflecting the number of + * bytes read from bufv->buf[0]). * * Introduced in version 2.9 *