gss_check_seq_num(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… gss_check_seq_num β€” a kernel API girly pops off

Okay bestie, so this is a page from the Kernel API Manual and the star of the show is gss_check_seq_num(9). Like, yes, the whole manual is literally named after her. Main character energy fr fr. πŸŽ€


✨ NAME ✨

gss_check_seq_num β€” the GSS sequence number window check, aka the little vibe check your sequence numbers have to pass πŸ¦‹


🌸 SYNOPSIS 🌸

bool gss_check_seq_num (const struct svc_rqst *rqstp , struct rsc *rsci
, u32 seq_num );

That's the whole fit. One bool return, three args, no cap. πŸ’œ


🌈 ARGUMENTS 🌈

  • rqstp β€” the RPC Call, and it's the one we point at when we gotta report errors. Like, if something's wrong, this is the receipts. πŸ“‹
  • rsci β€” the cached GSS context state. Heads up bestie: it gets updated on return, so she's not the same girl she was going in. πŸ™ˆ
  • seq_num β€” the sequence number we're checking. The actual number to vibe check. πŸ”₯

πŸ‘‘ DESCRIPTION πŸ‘‘

So what does she actually do? She implements the sequence number algorithm exactly as specified in RFC 2203, Section 5.3.3.1. "Context Management". Periodt. That's the spec, we're not improvising here. ✨

Here's the tea on the return values:

  • true β€” rqstp's GSS sequence number is inside the window. Slay, you're in. 🫢
  • false β€” rqstp's GSS sequence number is outside the window. Sorry babe, no entry. πŸ’€

It's giving bouncer at the club but for sequence numbers. Windows open, windows closed. iykyk. 🧚


πŸ’– SEE ALSO πŸ’–

Go read up on your faves, bestie:


Mwah πŸ’‹ β€” this iconic little page lives in ./net/sunrpc/auth_gss, dated October 2026, and it's signed gss_check_seq_num(9). Go off, queen. πŸ‘‘β­

πŸ“¦ where this page comes from