STRUCT UDP_HSLOT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 by hash4.
  • count β€” number of sockets in 'head' list.
  • lock β€” spinlock protecting changes to head/count.

🌈 SEE ALSO 🌈

kernel file ./include/net/udp.h, plus these other pages you should totally go read:


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