rpc_copy_addr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« rpc_copy_addr β€” bestie edition πŸ’«

okay so this is a page from the Kernel API Manual, and it's about rpc_copy_addr(9) β€” the little function that copies the address portion of one sockaddr to another. it's lowkey tiny but it's iconic, let's get into it πŸŽ€


✨ NAME ✨

rpc_copy_addr β€” copy the address portion of one sockaddr to another 🫢


🌸 SYNOPSIS 🌸

bool rpc_copy_addr (struct sockaddr *dst , const struct sockaddr *src );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dst β€” the destination sockaddr. this is where the address is going, she's the main character receiving the info πŸ’…
  • src β€” the source sockaddr. this is where the address is coming from, no cap πŸ“

πŸ‘‘ DESCRIPTION πŸ‘‘

okay so here's the whole vibe: it just copies the address portion and family. that's it. that's the function.

it ignores port, scope, etc. β€” like, not even a little bit interested, she's not nosy, she's focused πŸ™ˆ

now the important part, listen up bestie:

the caller is responsible for making certain that dst is large enough to hold the address in src. that's on you, not on her. do not come for her if you didn't size your buffer right πŸ’€

and the return value? it returns true if the address family is supported. it returns false otherwise. periodt ✨


πŸ”₯ SEE ALSO πŸ”₯

go read those too, iykyk 🌈


and that's the page, babes πŸ’– this lil icon comes to you from the kernel source tree at ./include/linux/sunrpc, dated October 2026 β€” mwah, talk later! πŸ§šπŸ’œ

πŸ“¦ where this page comes from