/third_party/ltp/testcases/kernel/syscalls/vmsplice/ |
H A D | vmsplice04.c | 6 * 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 D | vmsplice03.c | 6 * 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 D | vmsplice02.c | 9 * 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 D | vmsplice01.c | 19 #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 D | pipe.rs | 89 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 D | pipe.rs | 100 /// `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 D | mod.rs | 75 pub use pipe::{splice, vmsplice, IoSliceRaw, SpliceFlags};
|
/third_party/ltp/include/lapi/ |
H A D | vmsplice.h | 16 static inline ssize_t vmsplice(int fd, const struct iovec *iov, in vmsplice() function
|
/third_party/musl/src/linux/ |
H A D | vmsplice.c | 5 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 D | Makefile | 31 setdomainname sethostname symlinkat ulimit ustat vfork vhangup vmsplice
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | vmsplice.c | 38 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 D | fcntl.h | 193 ssize_t vmsplice(int, const struct iovec *, size_t, unsigned);
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/ |
H A D | fcntl.h | 192 ssize_t vmsplice(int, const struct iovec *, size_t, unsigned);
|
/third_party/musl/porting/liteos_m/kernel/include/ |
H A D | fcntl.h | 192 ssize_t vmsplice(int, const struct iovec *, size_t, unsigned);
|
/third_party/musl/porting/uniproton/kernel/include/ |
H A D | fcntl.h | 192 ssize_t vmsplice(int, const struct iovec *, size_t, unsigned);
|
/third_party/musl/porting/liteos_a/kernel/include/ |
H A D | fcntl.h | 186 ssize_t vmsplice(int, const struct iovec *, size_t, unsigned);
|
/third_party/musl/porting/liteos_m/user/include/ |
H A D | fcntl.h | 192 ssize_t vmsplice(int, const struct iovec *, size_t, unsigned);
|
/third_party/musl/include/ |
H A D | fcntl.h | 195 ssize_t vmsplice(int, const struct iovec *, size_t, unsigned);
|
/third_party/rust/crates/rustix/src/backend/libc/io/ |
H A D | syscalls.rs | 543 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 D | syscalls.rs | 663 pub unsafe fn vmsplice( in vmsplice() functions
|
/third_party/node/deps/openssl/openssl/engines/ |
H A D | e_afalg.c | 13 /* 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 D | e_afalg.c | 13 /* 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 D | fcntl.rs | 533 /// 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 D | test_fcntl.rs | 345 let res = vmsplice(wr, &iovecs[..], SpliceFFlags::empty()).unwrap(); in test_vmsplice()
|
/third_party/libfuse/lib/ |
H A D | fuse_lowlevel.c | 725 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,
|