gss_check_seq_num(9)
π 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:
- Kernel file
./net/sunrpc/auth_gss/svcauth_gss.c svcauth_gss_accept(9)svcauth_gss_release(9)
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
- 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