reuseport_select_sock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… reuseport_select_sock(9) β€” Kernel API Manual ✨

Okay bestie, welcome to the reuseport_select_sock page from the Kernel API Manual. This is the function that picks a socket out of an SO_REUSEPORT group, and it’s giving socket-picker main character energy. πŸŽ€


πŸŽ€ NAME πŸŽ€

reuseport_select_sock β€” select a socket from an SO_REUSEPORT group. πŸ’–

✨ SYNOPSIS ✨

struct sock * reuseport_select_sock (struct sock *sk , u32 hash , struct sk_buff *skb , int hdr_len );

🫢 ARGUMENTS 🫢

  • sk β€” First socket in the group. That’s the starting point, bestie. πŸ¦‹
  • hash β€” When no BPF filter is available, use this hash to select. No filter? Hash does the choosing, periodt. πŸ’…
  • skb β€” The skb to run through the BPF filter. Sliding into the filter like it’s a vibe check. 🌸
  • hdr_len β€” The BPF filter expects the skb data pointer at payload data. If the skb does not yet point at the payload, this parameter represents how far the pointer needs to advance to reach the payload. Returns a socket that should receive the packet (or NULL on error). 😭
Ngl, that NULL on error is the β€œoop” moment β€” keep an eye out. πŸ’€

🌈 SEE ALSO 🌈


🫢 Cute sign-off: this page’s source/version is ./net/core, its date is October 2026, and the manual is literally reuseport_select_sock(9). Bye bestie, go pick those sockets slayfully! πŸ’…βœ¨
πŸ“¦ where this page comes from