summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/kvec/errors.rs
diff options
context:
space:
mode:
authorChuck Lever <cel@kernel.org>2026-09-08 09:42:30 -0400
committerChuck Lever <cel@kernel.org>2026-10-04 21:15:29 -0400
commit712260f4c438664f407d77edca0a32459f625827 (patch)
treed50cdbe1b6e1f49f61b04022f74711abcd55a80d /rust/kernel/alloc/kvec/errors.rs
parent9ac56a057364810ad0145c9b3f61c8aa50d3520d (diff)
SUNRPC: Add svcxdr_decode_opaque_payload()
A bulk argument payload such as the content of an NFS WRITE request arrives in the pages of the server's Receive buffer. Copying it into a contiguous data pointer wastes memory bandwidth and defeats a transport capable of direct data placement, so a server decodes such an item in place: it reads the length prefix and captures the payload octets by reference in an xdr_buf that later stages hand to the VFS. svcxdr_encode_opaque_payload() already provides the encode-side counterpart for a page-resident result payload. Add the decode-side helper so a generated decoder can express the same in-place handling for a page-resident argument. Acked-by: Jeff Layton <jlayton@kernel.org> Link: https://patch.msgid.link/20260908134234.512312-7-cel@kernel.org Signed-off-by: Chuck Lever <cel@kernel.org>
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions