nfs4_preprocess_stateid_op(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nfs4_preprocess_stateid_op(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ this one's a little NFSv4 helper that goes and finds the stateid for you before your operation actually does its thing. she's giving backstage-pass energy πŸŽ€


🌸 NAME 🌸

nfs4_preprocess_stateid_op β€” find and prep stateid for an operation 🫢


✨ SYNOPSIS ✨

__be32 nfs4_preprocess_stateid_op (struct svc_rqst *rqstp , struct
       nfsd4_compound_state *cstate , struct svc_fh *fhp , stateid_t *stateid ,
       int flags , struct nfsd_file **nfp , struct nfs4_stid **cstid );

like yes, that's a whole lot of parameters, but we're gonna walk through every single one, no cap πŸ’–


πŸ¦‹ ARGUMENTS πŸ¦‹

  • rqstp β€” the incoming request from the client, bestie. this is the ask. πŸ’Œ
  • cstate β€” the current compound state, i.e. the whole vibe of the compound operation happening right now.
  • fhp β€” the filehandle associated with the requested stateid πŸ”—
  • stateid β€” the stateid, and girl, this one's provided by the client β€” not us, not anyone else. it comes from them. πŸ’…
  • flags β€” flags describing the type of operation to be done, aka the little mood board for what we're about to do 🎯
  • nfp β€” optional nfsd_file return pointer. and listen: it may be NULL. totally valid. she's optional πŸ“
  • cstid β€” optional returned nfs4_stid pointer. also may be NULL. also optional. we love a flexible icon πŸ‘‘

πŸ”₯ DESCRIPTION πŸ”₯

so basically: given all the info from the client, this function goes and looks up an nfs4_stid for the operation πŸ‘€βœ¨

on success, it returns a reference to the nfs4_stid and/or the nfsd_file associated with it. yes, and/or β€” she's versatile like that πŸ’β€β™€οΈ

friendly reminder that on success you're getting a reference β€” that's a real thing you now hold, not just a lil peek. don't be out here dropping refs on the floor, bestie 😭

🧚 SEE ALSO 🧚

Kernel file ./fs/nfsd/nfs4state.c β€” and honestly?? the whole friend group is here, let's name them all, because they deserve their moment 🌈

periodt. πŸ’œ


okay that's the whole page, you ate it, I'm obsessed 🫢 this lil drop came to you straight out of ./fs/nfsd, dated October 2026, and it lives in the nfs4_preprocess_stateid_op(9) era of the Kernel API Manual β€” mwah πŸ’‹πŸŒΈπŸ’–

πŸ“¦ where this page comes from