reuseport_select_sock(9)
π 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β Theskbto run through the BPF filter. Sliding into the filter like itβs a vibe check. πΈhdr_lenβ The BPF filter expects theskbdata pointer at payload data. If theskbdoes 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 (orNULLon error). π
Ngl, that NULL on error is the βoopβ moment β keep an eye out. π
π SEE ALSO π
- Kernel file
./net/core/sock_reuseport.c reuseport_add_sock(9)reuseport_migrate_sock(9)
π«Ά Cute sign-off: this pageβs source/version is./net/core, its date isOctober 2026, and the manual is literallyreuseport_select_sock(9). Bye bestie, go pick those sockets slayfully! π β¨
π¦ 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