rpc_cmp_addr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ 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 πŸ”₯


mwah πŸ’‹ β€” source/version: ./include/linux/sunrpc, dated October 2026. slay ✨

πŸ“¦ where this page comes from