rpc_cmp_addr_port(9)
π rpc_cmp_addr_port(9) β Kernel API Manual π
okay so bestie, welcome to the glow-up of rpc_cmp_addr_port(9), straight outta the Kernel API Manual. this one's short and sweet and honestly kind of iconic for it. let's get into it β¨
πΈ NAME πΈ
rpc_cmp_addr_port β bestie. it compares the address and the port number of two sockaddrs. that's the whole vibe. both things. the address, the port. together. no cap π«Ά
β¨ SYNOPSIS β¨
bool rpc_cmp_addr_port (const struct sockaddr *sap1 , const struct sockaddr *sap2 );
it returns a bool, it takes two const struct sockaddr * pointers, and it does not play about it π
π¦ ARGUMENTS π¦
sap1β the firstsockaddr. the main character of the pair, lowkey πsap2β the secondsockaddr. the one it's getting compared against. you gotta have both, iykyk π
π SEE ALSO π
- Kernel file
./include/linux/sunrpc/addr.h rpc_cmp_addr(9)rpc_copy_addr(9)rpc_get_scope_id(9)
like, go read the whole friend group if you want the full lore πβ¨
fr fr though β it does exactly what it says on the tin and nothing more. compare the address and the port. that's her whole thing π
and that's a wrap, bestie π this lil page lives under ./include/linux/sunrpc and is dated October 2026, so go forth and compare those sockaddrs like the icon you are ππ¦β
π¦ 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