rpc_cmp_addr(9)
π¦ rpc_cmp_addr(9) π¦
okay bestie, this is rpc_cmp_addr from the Kernel API Manual, and it's giving βsmall but iconic helperβ main character energy, no cap. It's a bool function β yes, it returns true or false β and it does literally one job: compare the address portion of two sockaddrs. Periodt. π
πΈ NAME πΈ
rpc_cmp_addr β compare the address portion of two sockaddrs. Cute, concise, iconic.
β¨ SYNOPSIS β¨
bool rpc_cmp_addr (const struct sockaddr *sap1 , const struct sockaddr
*sap2 );
π ARGUMENTS π
sap1β first sockaddr. Yep, the first one.sap2β second sockaddr. The other one. π
π DESCRIPTION π
So it literally just compares the family and the address portion. That's the vibe check. It ignores the port entirely β not invited to this party β but it does compare the scope if it's a link-local address. iykyk. π«Ά
It returns true if the addrs are equal, and false if they aren't. fr fr, that's it, and honestly? Obsessed. π
π₯ SEE ALSO π₯
- Kernel file
./include/linux/sunrpc/addr.h rpc_cmp_addr_port(9)rpc_copy_addr(9)rpc_get_scope_id(9)
mwah π β source/version: ./include/linux/sunrpc, dated October 2026. slay β¨
π¦ 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