nfs4_preprocess_stateid_op(9)
π 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β optionalnfsd_filereturn pointer. and listen: it may beNULL. totally valid. she's optional πcstidβ optional returnednfs4_stidpointer. also may beNULL. 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 π
nfs4_delegation_exists(9)hash_delegation_locked(9)revoke_delegation(9)nfs4_replay_free_cache(9)nfsd4_revoke_states(9)nfsd4_revoke_export_states(9)nfsd_slot_shrinker_count(9)nfsd_slot_shrinker_scan(9)nfsd4_put_client(9)nfsd_wait_for_delegreturn(9)nfsd_breaker_owns_lease(9)nfsd4_deleg_lm_open_conflict(9)nfsd4_process_open2(9)nfsd4_force_end_grace(9)nfs4_preprocess_seqid_op(9)nfsd4_release_lockowner(9)nfsd4_vet_deleg_time(9)nfsd4_deleg_getattr_conflict(9)nfsd_get_dir_deleg(9)nfsd_update_cmtime_attr(9)
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
- 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