logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

kcapi_set_maxsplicesize - Set maximum buffer size for splice

Arguments

handle
           [in] cipher handle allocated by caller.

       size
           [in] New maximum buffer size in bytes

Author

StephanMueller <smueller@chronox.de>
           Author.

Description

       When using vmsplice/splice to avoid copying of data into the kernel, the kernel enforces a maximum number
       of bytes which can be spliced. If larger data is to be processed, sendmsg will be used.

       Using this call, the buffer size can be increased.

Name

       kcapi_set_maxsplicesize - Set maximum buffer size for splice

Note

       Splice uses a pipe pair. Therefore, the maximum number of bytes that can be stored with the pipe governs
       the maximum data size to be spliced. Increasing the pipe buffer size is only allowed up to the maximum
       specified with /proc/sys/fs/pipe-max-size.

       return 0 upon success; a negative errno-style error code if an error occurred

Synopsis

intkcapi_set_maxsplicesize(structkcapi_handle*handle,unsignedintsize);

See Also