rpc_get_scope_id(9)
π rpc_get_scope_id(9) β the Kernel API Manual files
okay so bestie, welcome to the rpc_get_scope_id page, straight out of the Kernel API Manual (section 9, kernel-space girlies only π). it's a tiny one, but it eats, so let's get into it.
β¨ NAME β¨
rpc_get_scope_id β literally just returns the scopeid for a given sockaddr. that's the whole job. she's focused, she's employed π
πΈ SYNOPSIS πΈ
u32 rpc_get_scope_id (const struct sockaddr *sa );
yes, that's the entire signature. no cap, that's it. u32 in, u32 out β well, const struct sockaddr * in, u32 out. iykyk π
π¦ ARGUMENTS π¦
saβ thesockaddryou're pulling the scopeid out of. that's the source of truth, the main character of this whole function fr fr.
π DESCRIPTION π
so here's the tea β β rpc_get_scope_id returns the value of the sin6_scope_id for AF_INET6 addrs. and if the address isn't an AF_INET6 address? it gives you 0. simple as that. zero drama, zero extra steps β¨
quick vibe check to remember:AF_INET6β realsin6_scope_idvalue. anything else β0. periodt.
π SEE ALSO π
- the kernel file
./include/linux/sunrpc/addr.hβ go read it, it's giving source material π«Ά rpc_cmp_addr(9)rpc_cmp_addr_port(9)rpc_copy_addr(9)
they're all in the same friend group, obviously π
that's the whole page, bestie β short, sweet, and lowkey iconic πβ¨
signing off from the <lavender>./include/linux/sunrpccorner of the kernel, dated **October 2026**, still vibing inrpc_get_scope_id(9)` form π§ββοΈπ
π¦ 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