rpc_copy_addr(9)
π« 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 destinationsockaddr. this is where the address is going, she's the main character receiving the info πsrcβ the sourcesockaddr. 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 thatdstis large enough to hold the address insrc. 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 π₯
- the kernel file
./include/linux/sunrpc/addr.hβ rpc_cmp_addr(9)rpc_cmp_addr_port(9)rpc_get_scope_id(9)
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
- 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