rpc_cmp_addr_port(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 first sockaddr. the main character of the pair, lowkey πŸ‘‘
  • sap2 β€” the second sockaddr. the one it's getting compared against. you gotta have both, iykyk πŸ’œ

🌈 SEE ALSO 🌈

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