1KCAPI_SET_MAXSPLICES(3)      Programming Interface     KCAPI_SET_MAXSPLICES(3)
2
3
4

NAME

6       kcapi_set_maxsplicesize - Set maximum buffer size for splice
7

SYNOPSIS

9       int kcapi_set_maxsplicesize(struct kcapi_handle * handle,
10                                   unsigned int size);
11

ARGUMENTS

13       handle
14           [in] cipher handle allocated by caller.
15
16       size
17           [in] New maximum buffer size in bytes
18

DESCRIPTION

20       When using vmsplice/splice to avoid copying of data into the kernel,
21       the kernel enforces a maximum number of bytes which can be spliced. If
22       larger data is to be processed, sendmsg will be used.
23
24       Using this call, the buffer size can be increased.
25

NOTE

27       Splice uses a pipe pair. Therefore, the maximum number of bytes that
28       can be stored with the pipe governs the maximum data size to be
29       spliced. Increasing the pipe buffer size is only allowed up to the
30       maximum specified with /proc/sys/fs/pipe-max-size.
31
32       return 0 upon success; a negative errno-style error code if an error
33       occurred
34

AUTHOR

36       Stephan Mueller <smueller@chronox.de>
37           Author.
38
40libkcapi Manual 1.4.0             August 2022          KCAPI_SET_MAXSPLICES(3)
Impressum