svc_serv_maxpages(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 πŸ‘‘


xoxo, bestie πŸ’… source/version: ./include/linux/sunrpc, date: October 2026, and the page is svc_serv_maxpages(9) πŸŽ€βœ¨

πŸ“¦ where this page comes from