svc_rqst_replace_page(9)
π svc_rqst_replace_page(9) β or, the kernel API glow-up you didn't know you needed
okay so bestie, welcome to svc_rqst_replace_page(9), a page straight out of the Kernel API Manual. yes it's a manpage, no it's not boring, stay with me π«Ά
β¨ NAME β¨
svc_rqst_replace_page β swap out exactly one page in rq_respages[] like the icon it is π
πΈ SYNOPSIS πΈ
bool svc_rqst_replace_page (struct svc_rqst *rqstp , struct page *page
);
literally returns a bool, takes two things, that's the whole vibe check β
π¦ ARGUMENTS π¦
rqstpβ thesvc_rqstthat's holding the pages you wanna replace. it's giving main character energy, it's the one with pages to replace πpageβ the replacement page. the understudy. the swap-in. the new girl π
π§ DESCRIPTION π§
so here's the tea: when you're replacing a page in rq_respages, you don't just go ham on the page allocator, okay? no cap. you batch the release of the replaced pages so you're not out here hammering the page allocator with one-at-a-time chaos π it's called being considerate, and honestly? obsessed.
Return values:
true: page replaced, slay βfalse: array bounds checking failed, and likeβ¦ the vibes were off π
ngl the false case is a bounds check fail, so take that seriously β the call did not go through, periodt.
π SEE ALSO π
Kernel file ./net/sunrpc/svc.c β plus the whole friend group, fr fr:
sunrpc_get_pool_mode(9)svc_serv_nrpools(9)svc_pool_for_cpu(9)svc_create(9)svc_create_pooled(9)svc_pool_wake_idle_thread(9)svc_new_thread(9)svc_set_pool_threads(9)svc_set_num_threads(9)svc_serv_maxthreads(9)svc_rqst_release_pages(9)svc_exit_thread(9)svc_register(9)svc_stat_alloc_counts(9)svc_stat_free_counts(9)svc_process(9)svc_process_bc(9)svc_max_payload(9)svc_proc_name(9)svc_encode_result_payload(9)svc_fill_symlink_pathname(9)
and that's the whole page, bestie π this one ships from ./net/sunrpc, dated October 2026, and it's filed under svc_rqst_replace_page(9) β go forth and batch those releases, iykyk πβ¨
π¦ 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