svc_rqst_replace_page(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the svc_rqst that'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:


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