nfs4_preprocess_seqid_op(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ nfs4_preprocess_seqid_op(9) ✨

okay so bestie, this one lives in the Kernel API Manual and it's literally the girl who finds your ol_stateid and gets it all prepped for a seqid-morphing op. no cap, she's a whole vibe πŸ’…


🌸 NAME 🌸

nfs4_preprocess_seqid_op β€” find and prep an ol_stateid for a seqid-morphing op πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

__be32 nfs4_preprocess_seqid_op (struct nfsd4_compound_state *cstate ,
u32 seqid , stateid_t *stateid , unsigned short typemask ,
unsigned short statusmask , struct nfs4_ol_stateid **stpp ,
struct nfsd_net *nn
);

like yes she takes seven args, she's high-maintenance, she's iconic πŸ‘‘


πŸ’– ARGUMENTS πŸ’–

  • cstate β€” compound state 🫢 (the original page calls it "compund state", which is honestly so real of it)
  • seqid β€” the seqid, and it's provided by client β€” not us, never us πŸ™ˆ
  • stateid β€” the stateid, also provided by client πŸ“
  • typemask β€” mask of allowable types for this operation ✨
  • statusmask β€” mask of allowed states: 0 or STID_CLOSED πŸ”₯
  • stpp β€” return pointer for the stateid found πŸ’« like here's where the find goes
  • nn β€” net namespace for request 🌈

πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the tea β˜• Given a stateid+seqid from a client, she looks up an nfs4_ol_stateid and returns it in stpp. that's the whole job and she ate πŸ’…

and on an nfs_ok return β€” listen β€” the returned stateid will have its st_mutex locked πŸ”’ like she hands it to you already holding the lock, that's the deal, don't forget to deal with it bestie 😭


🧚 SEE ALSO 🧚

Kernel file ./fs/nfsd/nfs4state.c β€” and the whole group chat is here, fr fr:


bestie reminder: statusmask is only 0 or STID_CLOSED. those are the options. that's it. periodt πŸ’€

and that's the page!! source/version is ./fs/nfsd, dated October 2026, mwah πŸ«ΆπŸ’œ go read the other ones, ily, bye ✨🌸

πŸ“¦ where this page comes from