rxrpc_kernel_remote_addr(9)
π 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 π
- Kernel file
./net/rxrpc/peer_object.cπ rxrpc_kernel_get_call_peer(9)rxrpc_kernel_get_srtt(9)rxrpc_kernel_remote_srx(9)rxrpc_kernel_set_peer_data(9)rxrpc_kernel_get_peer_data(9)
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
- 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