STRUCT UDP_HSLOT_MAIN(9)
π¦ NAME π¦
okay so bestie, welcome to the Kernel API Manual β¨ β this page is struct udp_hslot_main, and it's literally the UDP hash slot used by udp_table.hash2. that's the whole vibe. main character energy for the networking stack fr fr π
πΈ SYNOPSIS πΈ
the way it's giving struct realness:
struct udp_hslot_main {
struct udp_hslot hslot;
#if !IS_ENABLED(CONFIG_BASE_SMALL);
u32 hash4_cnt;
#endif;
};
ngl copy this exactly as it's written, semicolons after #if and #endif and all β that's just how it appears here, so keep it character for character, no cap π
π Members π
hslotβ the basic hash slot. that's it, that's the whole thing, she's the foundation π«Άhash4_cntβ number of sockets inhslot4of the same (local port, local address). literally counting her little socket besties π
heads up babes:hash4_cntis wrapped in#if !IS_ENABLED(CONFIG_BASE_SMALL);, so when that config situation flips, she's simply not invited to the struct π₯
π« SEE ALSO π«
go read these next, i'm obsessed:
- Kernel file
./include/net/udp.h struct udp_skb_cb(9)struct udp_hslot(9)struct udp_table(9)udp_csum_outgoing(9)
okay that's the page! π this whole thing lives in ./include/net, dated October 2026, and it's filed under struct udp_hslot_main(9) β slay, go read the other structs now, iykyk β¨ππ·
π¦ 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