| /linux/tools/testing/selftests/splice/ |
| H A D | short_splice_read.sh | 4 # Test for mishandling of splice() on pseudofilesystems, which should catch 7 # Since splice fallback was removed as part of the set_fs() rework, many of these 102 # Make sure full splice has the same contents as a standard read. 108 # Make sure a partial splice see the first two characters. 117 ### /proc/$pid/ has no splice interface; these should all fail. 118 expect_failure "proc_single_open(), seq_read() splice" test_splice /proc/$$/limits 119 expect_failure "special open(), seq_read() splice" test_splice /proc/$$/comm 121 ### /proc/sys/ has a splice interface; these should all succeed. 122 expect_success "proc_handler: proc_dointvec_minmax() splice" test_splice /proc/sys/fs/nr_open 123 expect_success "proc_handler: proc_dostring() splice" test_splice /proc/sys/kernel/modprobe [all …]
|
| H A D | splice_read.c | 47 /* splice(2) file to stdout. */ in main() 48 spliced = splice(fd, NULL, STDOUT_FILENO, NULL, in main() 51 perror("splice"); in main()
|
| H A D | default_file_splice_read.c | 7 splice(0, 0, 1, 0, 1<<30, 0); in main()
|
| /linux/fs/ |
| H A D | splice.c | 3 * "splice": joining two ropes together by interweaving their strands. 9 * The traditional unix read/write is extended with a "splice()" operation 25 #include <linux/splice.h> 43 * Splice doesn't support FMODE_NOWAIT. Since pipes may set this flag to 45 * here if set to avoid blocking other users of this pipe if splice is 130 * splice, if this is the first page. in page_cache_pipe_buf_confirm() 299 * copy_splice_read - Copy data from a file and splice the copy into a pipe 302 * @pipe: The pipe to splice into 303 * @len: The amount to splice 424 * @pipe: pipe to splice from [all …]
|
| /linux/Documentation/filesystems/ |
| H A D | splice.rst | 2 splice and pipes 5 splice API 8 splice is a method for moving blocks of data around inside the kernel, 11 .. kernel-doc:: fs/splice.c
|
| /linux/include/linux/ |
| H A D | splice.h | 3 * Function declerations and data structures related to the splice 15 * Flags passed in from splice/tee/vmsplice 19 /* we may still block on the fd we splice */ 32 unsigned int flags; /* splice flags */
|
| H A D | rculist.h | 278 * list_splice_rcu - splice a non-RCU list into an RCU-protected list, 280 * @list: the non RCU-protected list to splice 281 * @head: the place in the existing RCU-protected list to splice 295 * @list: the RCU-protected list to splice 340 * Readers are finished with the source list, so perform splice. in __list_splice_init_rcu() 354 * list_splice_init_rcu - splice an RCU-protected list into an existing list, 356 * @list: the RCU-protected list to splice 357 * @head: the place in the existing list to splice the first list into 369 * list_splice_tail_init_rcu - splice an RCU-protected list into an existing 371 * @list: the RCU-protected list to splice [all …]
|
| /linux/drivers/md/dm-vdo/ |
| H A D | wait-queue.c | 32 /* Splice the new waiter in at the end of the waitq. */ in vdo_waitq_enqueue_waiter() 57 * Both are non-empty. Splice the two circular lists together in vdo_waitq_transfer_all_waiters() 167 * The waitq has multiple waiters, so splice the first waiter out in vdo_waitq_dequeue_waiter()
|
| /linux/tools/testing/selftests/arm64/fp/ |
| H A D | kernel-test.c | 219 ret = splice(zerocopy[0], NULL, sock, NULL, wrote, 0); in compute_digest() 221 printf("Failed to splice buffer: %s (%d)\n", in compute_digest() 224 printf("Short splice: %d < %d\n", ret, wrote); in compute_digest()
|
| /linux/tools/testing/selftests/net/mptcp/ |
| H A D | mptcp_connect.c | 128 …fprintf(stderr, "\t-m [poll|mmap|sendfile|splice] -- use poll(default)/mmap+write/sendfile/splice\… in die_usage() 950 in_bytes = splice(infd, NULL, pipefd[1], NULL, len - winfo->total_len, in do_splice() 953 perror("splice in"); in do_splice() 956 out_bytes = splice(pipefd[0], NULL, outfd, NULL, in_bytes, in do_splice() 959 perror("splice out"); in do_splice() 1454 if (!strcasecmp(mode, "splice")) in parse_mode() 1462 …fprintf(stderr, "\t\t\"splice\" - send entire input file (splice), then read response (-l will rea… in parse_mode()
|
| /linux/tools/virtio/virtio-trace/ |
| H A D | trace-agent-rw.c | 127 rlen = splice(ts->in_fd, NULL, ts->read_pipe, NULL, in rw_thread_main() 148 ret = splice(ts->write_pipe, NULL, ts->out_fd, NULL, in rw_thread_main()
|
| H A D | README | 6 - splice a page of ring-buffer to read_pipe without memory copying 7 - splice the page from write_pipe to virtio-console without memory copying
|
| /linux/rust/macros/ |
| H A D | paste.rs | 100 tokens.splice(i + 3..i + 4, group.stream()); in expand() 107 tokens.splice(i..i + 1, group.stream()); in expand()
|
| H A D | pinned_drop.rs | |
| /linux/tools/testing/selftests/net/ |
| H A D | tls.c | 777 EXPECT_GE(splice(p[0], NULL, self->fd, NULL, send_len, 0), 0); in TEST_F() 793 EXPECT_EQ(splice(p[0], NULL, self->fd, NULL, send_pipe, f), 1); in TEST_F() 809 EXPECT_EQ(splice(p[0], NULL, self->fd, NULL, 8000, 0), 8000); in TEST_F() 811 EXPECT_EQ(splice(p2[0], NULL, self->fd, NULL, 8000, 0), 8000); in TEST_F() 832 EXPECT_GE(splice(p[0], NULL, self->fd, NULL, send_len, 0), send_len); in TEST_F() 849 EXPECT_EQ(splice(self->cfd, NULL, p[1], NULL, send_len, 0), send_len); in TEST_F() 867 EXPECT_EQ(splice(self->cfd, NULL, p[1], NULL, send_len, 0), -1); in TEST_F() 892 EXPECT_EQ(splice(self->cfd, NULL, p[1], NULL, send_len, 0), -1); in TEST_F() 910 /* Recv hald of the record, splice the other half */ in TEST_F() 912 EXPECT_EQ(splice(self->cfd, NULL, p[1], NULL, half, SPLICE_F_NONBLOCK), in TEST_F() [all …]
|
| /linux/net/smc/ |
| H A D | smc_rx.c | 16 #include <linux/splice.h> 347 * @pipe: copy data to pipe if set - indicates splice() call 458 /* subsequent splice() calls pick up where previous left */ in smc_rx_recvmsg()
|
| /linux/rust/pin-init/internal/src/ |
| H A D | pinned_drop.rs | |
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | bpf_syscall_macro.c | 89 SEC("ksyscall/splice")
|
| /linux/include/uapi/linux/ |
| H A D | fuse.h | 104 * - add splice support to fuse device 406 * FUSE_SPLICE_WRITE: kernel supports splice write on the device 407 * FUSE_SPLICE_MOVE: kernel supports splice move on the device 408 * FUSE_SPLICE_READ: kernel supports splice read on the device
|
| /linux/fs/xfs/ |
| H A D | xfs_trans_ail.c | 270 * Splice the log item list into the AIL at the given LSN. We splice to the 306 * Finally perform the splice. Unless the AIL was empty, in xfs_ail_splice() 816 * splice this list into the correct position in the AIL.
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | test_bpf_syscall_macro.c | 72 r = splice(-42, &off_in, 42, &off_out, 0x12340000, SPLICE_F_NONBLOCK); in test_bpf_syscall_macro()
|
| /linux/arch/powerpc/crypto/ |
| H A D | ppc-xlate.pl | 186 my $vshasigmad = sub { my ($st,$six)=splice(@_,-2); vcrypto_op(@_, $st<<4|$six, 1730); }; 187 my $vshasigmaw = sub { my ($st,$six)=splice(@_,-2); vcrypto_op(@_, $st<<4|$six, 1666); };
|
| /linux/Documentation/trace/ |
| H A D | ring-buffer-map.rst | 40 each subbuf). It is also not possible to use snapshot and causes splice to copy
|
| /linux/Documentation/translations/zh_CN/networking/ |
| H A D | msg_zerocopy.rst | 30 和 splice。MSG_ZEROCOPY 标志将底层的拷贝避免机制扩展到了常见的套接字发送调用中。
|
| /linux/fs/fuse/ |
| H A D | backing.c | 105 /* read/write/splice/mmap passthrough only relevant for regular files */ in fuse_backing_open()
|