rxrpc_kernel_remote_addr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… rxrpc_kernel_remote_addr πŸ’…

okay so bestie, welcome to the kernel API manual β€” this one's a lil function from the rxrpc world and honestly it's giving "small but mighty" ✨

🌸 NAME 🌸

rxrpc_kernel_remote_addr β€” get the peer transport address of a call 🫢

✨ SYNOPSIS ✨

const struct sockaddr * rxrpc_kernel_remote_addr (const struct
       rxrpc_peer *peer );

πŸŽ€ ARGUMENTS πŸŽ€

  • peer β€” the peer you wanna query, bestie. that's the one. πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

so what this does is it gets you a pointer to the transport address straight out of a peer record. very demure, very mindful. πŸ’…

but okay listen β€” the caller is responsible for making sure that the address is not deallocated. that's on you, not on the function. no cap. if that thing gets freed while you're still holding the pointer you're gonna have a bad time 😭 so keep it alive, mkay?

and plot twist: if peer is NULL, a fake address</> gets substituted in. no crash, no drama, just a lil stand-in doing its best 🧚

⭐ RETURN ⭐

you get back the transport address record β€” or, if you handed it a NULL peer, that fake record we just talked about. either way you're getting something back, king πŸ‘‘

🌈 SEE ALSO 🌈


okay that's the whole page, you ate that πŸ’– this lil gem lives in ./net/rxrpc, it's dated October 2026, and it's filed under rxrpc_kernel_remote_addr(9) β€” go forth and query those peers, bestie πŸ“βœ¨

πŸ“¦ where this page comes from