Home
last modified time | relevance | path

Searched refs:zerocopy (Results 1 – 25 of 34) sorted by relevance

12

/linux/rust/zerocopy/
H A DREADME.md1 # `zerocopy`
3 These source files come from the Rust `zerocopy` crate, version v0.8.54
4 (released 2026-07-08), hosted in the <https://github.com/google/zerocopy>
10 https://github.com/google/zerocopy/blob/v0.8.54/README.md?plain=1
11 https://github.com/google/zerocopy/blob/v0.8.54/LICENSE-BSD
12 https://github.com/google/zerocopy/blob/v0.8.54/LICENSE-APACHE
13 https://github.com/google/zerocopy/blob/v0.8.54/LICENSE-MIT
/linux/rust/zerocopy-derive/
H A DREADME.md1 # `zerocopy-derive`
3 These source files come from the Rust `zerocopy-derive` crate, version v0.8.54
4 (released 2026-07-08), hosted in the <https://github.com/google/zerocopy>
11 https://github.com/google/zerocopy/blob/v0.8.54/README.md?plain=1
12 https://github.com/google/zerocopy/blob/v0.8.54/LICENSE-BSD
13 https://github.com/google/zerocopy/blob/v0.8.54/LICENSE-APACHE
14 https://github.com/google/zerocopy/blob/v0.8.54/LICENSE-MIT
H A Dlib.rs83 #[proc_macro_derive($trait, attributes(zerocopy))]
133 #[proc_macro_derive(most_traits, attributes(zerocopy))]
H A Dutil.rs39 let mut path = parse_quote!(::zerocopy); in try_from_derive_input()
/linux/rust/
H A DMakefile12 obj-$(CONFIG_RUST) += zerocopy.o
90 zerocopy-cfgs := \
93 zerocopy-flags := \
95 $(call cfgs-to-flags,$(zerocopy-cfgs))
97 zerocopy-envs := \
197 rustdoc-kernel rustdoc-pin_init rustdoc-zerocopy rustdoc-zerocopy_derive
233 rustdoc-zerocopy_derive: $(src)/zerocopy-derive/lib.rs rustdoc-clean rustdoc-syn FORCE
255 rustdoc-zerocopy: private rustc_target_envs := $(zerocopy-envs)
256 rustdoc-zerocopy: private is-kernel-object := y
257 rustdoc-zerocopy: private rustc_target_flags = $(zerocopy-flags) \
[all …]
/linux/tools/testing/selftests/net/packetdrill/
H A Dtcp_zerocopy_maxfrags.pkt5 // 1) fit in a single packet without zerocopy
6 // 2) spill over into a second packet with zerocopy,
10 --send_omit_free // do not reuse send buffers with zerocopy
18 // Each pinned zerocopy page is fully accounted to skb->truesize.
44 // send a zerocopy iov of 18 elements:
75 // send a zerocopy iov of 64 elements:
H A Dtcp_zerocopy_fastopen-client.pkt2 // Fastopen client zerocopy test:
9 // zerocopy notification counter is not incremented. Verify this too.
11 --send_omit_free // do not reuse send buffers with zerocopy
24 // Read from error queue: no zerocopy notification
45 // Read from error queue: now has first zerocopy notification
H A Dtcp_zerocopy_small.pkt2 // small packet zerocopy test:
4 // verify that SO_EE_CODE_ZEROCOPY_COPIED is set on zerocopy
7 --send_omit_free // do not reuse send buffers with zerocopy
H A Dtcp_zerocopy_fastopen-server.pkt2 // Fastopen server zerocopy test:
7 --send_omit_free // do not reuse send buffers with zerocopy
31 // Read from error queue: now has first zerocopy notification
H A Dtcp_zerocopy_closed.pkt4 // verify that a send in state TCP_CLOSE correctly aborts the zerocopy
5 // operation, specifically it does not increment the zerocopy counter.
10 --send_omit_free // do not reuse send buffers with zerocopy
H A Dtcp_zerocopy_client.pkt2 // Minimal client-side zerocopy test
4 --send_omit_free // do not reuse send buffers with zerocopy
H A Dtcp_zerocopy_batch.pkt2 // batch zerocopy test:
6 --send_omit_free // do not reuse send buffers with zerocopy
H A Dtcp_zerocopy_basic.pkt2 // basic zerocopy test:
7 --send_omit_free // do not reuse send buffers with zerocopy
H A Dtcp_zerocopy_epoll_edge.pkt2 // epoll zerocopy test:
11 --send_omit_free // do not reuse send buffers with zerocopy
H A Dtcp_zerocopy_epoll_exclusive.pkt2 // epoll zerocopy test:
12 --send_omit_free // do not reuse send buffers with zerocopy
H A Dtcp_zerocopy_epoll_oneshot.pkt2 // epoll zerocopy test:
12 --send_omit_free // do not reuse send buffers with zerocopy
/linux/tools/testing/vsock/
H A Dvsock_perf.c37 static bool zerocopy; variable
273 if (zerocopy) in run_sender()
287 if (zerocopy) { in run_sender()
320 zerocopy ? MSG_ZEROCOPY : 0); in run_sender()
328 if (zerocopy) { in run_sender()
359 if (zerocopy) in run_sender()
486 zerocopy = true; in main()
/linux/tools/testing/selftests/arm64/fp/
H A Dkernel-test.c32 static int zerocopy[2]; variable
182 ret = pipe(zerocopy); in create_socket()
211 ret = vmsplice(zerocopy[1], &iov, 1, SPLICE_F_GIFT); in compute_digest()
219 ret = splice(zerocopy[0], NULL, sock, NULL, wrote, 0); in compute_digest()
/linux/tools/testing/selftests/net/
H A Dmsg_zerocopy.c402 int ret, zerocopy; in do_recv_completion() local
447 zerocopy = !(serr->ee_code & SO_EE_CODE_ZEROCOPY_COPIED); in do_recv_completion()
449 cfg_expect_zerocopy != zerocopy) { in do_recv_completion()
451 zerocopy, cfg_expect_zerocopy); in do_recv_completion()
454 cfg_expect_zerocopy = zerocopy; in do_recv_completion()
/linux/rust/kernel/
H A Dprelude.rs64 pub use zerocopy::{
/linux/Documentation/networking/
H A Dmsg_zerocopy.rst74 error(1, errno, "setsockopt zerocopy");
86 A zerocopy failure will return -1 with errno ENOBUFS. This happens if
217 protocol headers plus zerocopy user data. A packet may need to be
223 before the (copied) data is fully transmitted. A zerocopy completion
/linux/drivers/net/
H A Dtap.c586 bool zerocopy = false; in tap_get_user() local
614 zerocopy = true; in tap_get_user()
617 if (!zerocopy) { in tap_get_user()
627 if (zerocopy) in tap_get_user()
667 if (zerocopy) { in tap_get_user()
H A Dtun.c1601 int len, int noblock, bool zerocopy) in tun_can_build_skb() argument
1612 if (zerocopy) in tun_can_build_skb()
1792 bool zerocopy = false; in tun_get_user() local
1848 zerocopy = true; in tun_get_user()
1851 if (!frags && tun_can_build_skb(tun, tfile, len, noblock, zerocopy)) { in tun_get_user()
1863 if (!zerocopy) { in tun_get_user()
1875 zerocopy = false; in tun_get_user()
1888 if (zerocopy) in tun_get_user()
1945 if (zerocopy) { in tun_get_user()
/linux/Documentation/translations/zh_CN/networking/
H A Dmsg_zerocopy.rst74 error(1, errno, "setsockopt zerocopy");
/linux/net/vmw_vsock/
H A Daf_vsock.c2019 int zerocopy; in vsock_connectible_setsockopt() local
2029 COPY_IN(zerocopy); in vsock_connectible_setsockopt()
2031 if (zerocopy < 0 || zerocopy > 1) { in vsock_connectible_setsockopt()
2041 sock_valbool_flag(sk, SOCK_ZEROCOPY, zerocopy); in vsock_connectible_setsockopt()

12