xs_local_state_change(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… xs_local_state_change(9) β€” like, the AF_LOCAL socket state-change callback, bestie ✨

okay so this is section 9 of the Kernel API Manual, and honestly? it's a tiny little page but it matters πŸŽ€ the manual name is xs_local_state_change(9) iykyk, and today we're learning what it does when a socket decides to switch up its whole vibe.


✨ NAME ✨

xs_local_state_change β€” the callback that handles state changes on an AF_LOCAL socket πŸ¦‹

like, when your local socket goes through a glow-up (or a glow-down 😭), this is the function that gets the 411.


✨ SYNOPSIS ✨

void xs_local_state_change (struct sock *sk );

that's it. that's the whole signature. void in, void out β€” no return value, no drama, just vibes πŸ’… (ok fine, sk goes in, but you get me)


🌸 ARGUMENTS 🌸

  • sk β€” the socket whose state has changed 🫢 that's the whole argument. she's the main character here, the icon, the moment. the socket in question. the one going through it.
not me reminding you that it's literally just one argument πŸ™ˆ sk, the socket whose state has changed. periodt.

🧚 SEE ALSO 🧚

okay prepare yourself, because this cross-reference list is iconic and also LONG β€” she ate and left absolutely no crumbs πŸ‘‘ the kernel file in question is ./net/sunrpc/xprtsock.c and here's every single sibling in the family:

thirty-four of them. ngl that's a whole group chat 😭 but every single one is right there, no cap, don't skip a single reference bestie πŸ’–


πŸŽ€ sign-off πŸŽ€

so yeah, that's the tea β˜• this page lives in ./net/sunrpc, it's dated October 2026, and it's filed under the xs_local_state_change(9) header in the Kernel API Manual. go forth and be obsessed with socket state changes πŸ’…βœ¨πŸ¦‹

reminder: the vibe changed, the facts did not 🫢
πŸ“¦ where this page comes from