_copy_from_pages(9)
π NAME π
Hey bestie, welcome to _copy_from_pages(9) from the Kernel API Manual β¨ The original NAME line is literally _copy_from_pages - with no description after the dash, so she's giving mysterious main character energy. No cap.
β¨ SYNOPSIS β¨
void _copy_from_pages (char *p , struct page **pages , size_t pgbase ,
size_t len );
That's the whole signature, and yes, every comma and space is doing its little thing. π
π ARGUMENTS π
pβ pointer to destination. That's where the data is going, bestie.pagesβ array of pages. The source squad. π¦pgbaseβ offset of source data. Where in the source we start, iykyk.lenβ length. How much data we're moving.
π¦ DESCRIPTION π¦
So _copy_from_pages copies data into an arbitrary memory location from an array of pages. That's the vibe: arbitrary destination, pages as the source. π
The copy is assumed to be non-overlapping. That's the caveat, so keep it non-overlapping and don't be messy about it, periodt. πΈ
π SEE ALSO π
Kernel file ./net/sunrpc/xdr.c β go look at the source, she's right there. Also the whole xdr extended universe:
xdr_encode_opaque_fixed(9)xdr_encode_opaque(9)xdr_terminate_string(9)xdr_buf_to_bvec(9)xdr_buf_to_sg(9)xdr_buf_to_sg_alloc(9)xdr_inline_pages(9)_shift_data_left_pages(9)_shift_data_right_pages(9)_copy_to_pages(9)xdr_buf_pages_zero(9)xdr_shrink_bufhead(9)xdr_shrink_pagelen(9)xdr_stream_pos(9)xdr_page_pos(9)xdr_init_encode(9)xdr_init_encode_pages(9)__xdr_commit_encode(9)xdr_reserve_space(9)xdr_reserve_space_vec(9)xdr_truncate_encode(9)xdr_truncate_decode(9)xdr_restrict_buflen(9)xdr_write_pages(9)xdr_init_decode(9)xdr_init_decode_pages(9)xdr_finish_decode(9)xdr_inline_decode(9)xdr_read_pages(9)xdr_set_pagelen(9)xdr_enter_page(9)xdr_buf_subsegment(9)xdr_stream_subsegment(9)xdr_stream_move_subsegment(9)xdr_stream_zero(9)xdr_buf_trim(9)xdr_stream_decode_string_dup(9)xdr_stream_decode_opaque_auth(9)xdr_stream_encode_opaque_auth(9)
Source/version and date sign-off: this cutie lives under ./net/sunrpc, dated October 2026, in the _copy_from_pages(9) section πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms