svc_serv_maxpages(9)
π svc_serv_maxpages(9) π
okay bestie, we're in the Kernel API Manual and this page is literally all about svc_serv_maxpages(9). grab a strawberry π and let's go.
πΈ NAME πΈ
svc_serv_maxpages β maximum count of pages needed for one RPC message β¨
β¨ SYNOPSIS β¨
the signature is giving exact, no cap:
unsigned long svc_serv_maxpages (const struct svc_serv *serv );
π«Ά ARGUMENTS π«Ά
servβ RPC service context π
π DESCRIPTION π
Okay so this function returns a count of pages or vectors that can hold the maximum size RPC message for serv. main character behavior tbh.
Each page array can hold at most one payload plus two overhead pages (one for the RPC header, one for tail data). yes bestie, that's the whole overhead situation, periodt.
nfsd_splice_actor might need an extra page when a READ payload is not page-aligned. not me side-eyeing alignment π β it's a might, so don't come for me.
π¦ SEE ALSO π¦
Kernel file: ./include/linux/sunrpc/svc.h π
svc_thread_should_stop(9)svc_thread_init_status(9)svc_rqst_page_release(9)svcxdr_init_decode(9)svcxdr_init_encode(9)svcxdr_encode_opaque_pages(9)svcxdr_set_auth_slack(9)svcxdr_set_accept_stat(9)
xoxo, bestie π
source/version: ./include/linux/sunrpc, date: October 2026, and the page is svc_serv_maxpages(9) πβ¨
π¦ 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