STRUCT UDP_HSLOT(9)
π NAME π
okay so welcome to the struct udp_hslot(9) page from the Kernel API Manual, bestie. This is literally all about struct udp_hslot β the UDP hash slot used by udp_table.hash/hash4. no cap, that's the whole vibe. β¨
β¨ SYNOPSIS β¨
here's the struct in all its glory, copied exactly so you don't have to squint:
struct udp_hslot {
union {
struct hlist_head head;
struct hlist_nulls_head nulls_head;
};
int count;
spinlock_t lock;
};
π Members π
{unnamed_union}β anonymous. that's what the page says, bestie: anonymous. it's giving mysterious main character energy. π«Άheadβ head of list of sockets.nulls_headβ head of list of sockets, only used byhash4.countβ number of sockets in'head'list.lockβ spinlock protecting changes tohead/count.
π SEE ALSO π
kernel file ./include/net/udp.h, plus these other pages you should totally go read:
struct udp_skb_cb(9)struct udp_hslot_main(9)struct udp_table(9)udp_csum_outgoing(9)
okay bye bestie π this page is from ./include/net, dated October 2026, and it's literally struct udp_hslot(9) β periodt. πΈπ¦π
π¦ 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