Home
last modified time | relevance | path

Searched refs:vmsplice (Results 1 - 25 of 28) sorted by relevance

12

/third_party/ltp/testcases/kernel/syscalls/vmsplice/
H A Dvmsplice04.c6 * Test vmsplice() to a full pipe with SPLICE_F_NONBLOCK and without.
8 * With SPLICE_F_NONBLOCK vmsplice() should return with errno EAGAIN
15 #include "lapi/vmsplice.h"
29 TEST(vmsplice(pipes[1], &iov, 1, SPLICE_F_NONBLOCK)); in vmsplice_test()
33 "vmsplice(..., SPLICE_F_NONBLOCK) failed as expected"); in vmsplice_test()
36 "vmsplice(..., SPLICE_F_NONBLOCK) shall fail with EAGAIN"); in vmsplice_test()
39 "vmsplice(..., SPLICE_F_NONBLOCK) wrote to a full pipe"); in vmsplice_test()
44 TEST(vmsplice(pipes[1], &iov, 1, 0)); in vmsplice_test()
46 tst_res(TFAIL | TTERRNO, "vmsplice(..., 0) failed"); in vmsplice_test()
49 "vmsplice( in vmsplice_test()
[all...]
H A Dvmsplice03.c6 * Test vmsplice() from a pipe into user memory
13 #include "lapi/vmsplice.h"
31 written = vmsplice(pipes[0], iov, 1, 0); in vmsplice_test()
34 tst_brk(TBROK | TERRNO, "vmsplice() failed"); in vmsplice_test()
37 tst_res(TFAIL, "vmsplice() didn't write anything"); in vmsplice_test()
H A Dvmsplice02.c9 * 1) vmsplice() returns -1 and sets errno to EBADF if fd
11 * 2) vmsplice() returns -1 and sets errno to EBADF if fd
13 * 3) vmsplice() returns -1 and sets errno to EINVAL if
28 #include "lapi/vmsplice.h"
65 TEST(vmsplice(*(tc->fd), tc->iov, tc->nr_segs, 0)); in vmsplice_verify()
68 tst_res(TFAIL, "vmsplice() returned %ld, " in vmsplice_verify()
76 "vmsplice() failed unexpectedly; expected: %d - %s", in vmsplice_verify()
81 tst_res(TPASS | TTERRNO, "vmsplice() failed as expected"); in vmsplice_verify()
H A Dvmsplice01.c19 #include "lapi/vmsplice.h"
76 written = vmsplice(pipes[1], &v, 1, 0); in vmsplice_test()
78 tst_brk(TBROK | TERRNO, "vmsplice() failed"); in vmsplice_test()
/third_party/rust/crates/rustix/tests/io/
H A Dpipe.rs89 use rustix::io::{pipe, read, vmsplice, IoSliceRaw, SpliceFlags}; in test_vmsplice_write()
99 unsafe { vmsplice(&write_p, &input, SpliceFlags::empty()).unwrap() }; in test_vmsplice_write()
109 use rustix::io::{pipe, vmsplice, write, IoSliceRaw, SpliceFlags}; in test_vmsplice_read()
120 unsafe { vmsplice(&read_p, &outputs_slices, SpliceFlags::empty()).unwrap() }; in test_vmsplice_read()
/third_party/rust/crates/rustix/src/io/
H A Dpipe.rs100 /// `vmsplice(fd, bufs, flags)`—Transfer data between memory and a pipe.
121 /// [Linux]: https://man7.org/linux/man-pages/man2/vmsplice.2.html
124 pub unsafe fn vmsplice<PipeFd: AsFd>( in vmsplice() functions
129 backend::io::syscalls::vmsplice(fd.as_fd(), bufs, flags) in vmsplice()
H A Dmod.rs75 pub use pipe::{splice, vmsplice, IoSliceRaw, SpliceFlags};
/third_party/ltp/include/lapi/
H A Dvmsplice.h16 static inline ssize_t vmsplice(int fd, const struct iovec *iov, in vmsplice() function
/third_party/musl/src/linux/
H A Dvmsplice.c5 ssize_t vmsplice(int fd, const struct iovec *iov, size_t cnt, unsigned flags) in vmsplice() function
/third_party/ltp/testcases/kernel/syscalls/
H A DMakefile31 setdomainname sethostname symlinkat ulimit ustat vfork vhangup vmsplice
/third_party/musl/libc-test/src/functionalext/supplement/linux/
H A Dvmsplice.c38 size_t result = vmsplice(pipe_fds[1], v, sizeof(v) / sizeof(struct iovec), 0); in vmsplice_0100()
40 t_error("%s vmsplice error get result is %d are not want %d\n", __func__, result, v[0].iov_len + v[1].iov_len); in vmsplice_0100()
/third_party/musl/porting/linux/user/include/
H A Dfcntl.h193 ssize_t vmsplice(int, const struct iovec *, size_t, unsigned);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
H A Dfcntl.h192 ssize_t vmsplice(int, const struct iovec *, size_t, unsigned);
/third_party/musl/porting/liteos_m/kernel/include/
H A Dfcntl.h192 ssize_t vmsplice(int, const struct iovec *, size_t, unsigned);
/third_party/musl/porting/uniproton/kernel/include/
H A Dfcntl.h192 ssize_t vmsplice(int, const struct iovec *, size_t, unsigned);
/third_party/musl/porting/liteos_a/kernel/include/
H A Dfcntl.h186 ssize_t vmsplice(int, const struct iovec *, size_t, unsigned);
/third_party/musl/porting/liteos_m/user/include/
H A Dfcntl.h192 ssize_t vmsplice(int, const struct iovec *, size_t, unsigned);
/third_party/musl/include/
H A Dfcntl.h195 ssize_t vmsplice(int, const struct iovec *, size_t, unsigned);
/third_party/rust/crates/rustix/src/backend/libc/io/
H A Dsyscalls.rs543 pub unsafe fn vmsplice( in vmsplice() functions
548 ret_ssize_t(c::vmsplice( in vmsplice()
/third_party/rust/crates/rustix/src/backend/linux_raw/io/
H A Dsyscalls.rs663 pub unsafe fn vmsplice( in vmsplice() functions
/third_party/node/deps/openssl/openssl/engines/
H A De_afalg.c13 /* Required for vmsplice */
516 * vmsplice and splice are used to pin the user space input buffer for in afalg_start_cipher_sk()
519 ret = vmsplice(actx->zc_pipe[1], &iov, 1, SPLICE_F_GIFT); in afalg_start_cipher_sk()
521 ALG_PERR("%s(%d): vmsplice failed : ", __FILE__, __LINE__); in afalg_start_cipher_sk()
/third_party/openssl/engines/
H A De_afalg.c13 /* Required for vmsplice */
516 * vmsplice and splice are used to pin the user space input buffer for in afalg_start_cipher_sk()
519 ret = vmsplice(actx->zc_pipe[1], &iov, 1, SPLICE_F_GIFT); in afalg_start_cipher_sk()
521 ALG_PERR("%s(%d): vmsplice failed : ", __FILE__, __LINE__); in afalg_start_cipher_sk()
/third_party/rust/crates/nix/src/
H A Dfcntl.rs533 /// Not applicable to `vmsplice`.
539 /// Not applicable to `vmsplice`.
623 pub fn vmsplice( in vmsplice() functions
630 libc::vmsplice( in vmsplice()
/third_party/rust/crates/nix/test/
H A Dtest_fcntl.rs345 let res = vmsplice(wr, &iovecs[..], SpliceFFlags::empty()).unwrap(); in test_vmsplice()
/third_party/libfuse/lib/
H A Dfuse_lowlevel.c725 res = vmsplice(llp->pipe[1], iov, iov_count, SPLICE_F_NONBLOCK);
731 fuse_log(FUSE_LOG_ERR, "fuse: short vmsplice to pipe: %u/%zu\n", res,

Completed in 16 milliseconds

12