kernel_getpeername(9)
kernel_getpeername(9) π
okay bestie, this one is straight from the Kernel API Manual and it's all about kernel_getpeername β the kernel-space queen of βwhere is this socket connected to?β vibes. π
β¨
NAME
kernel_getpeername β get the address which the socket is connected (kernel space)
SYNOPSIS
int kernel_getpeername (struct socket *sock , struct sockaddr *addr );
ARGUMENTS
sockβ socketaddrβ address holder
DESCRIPTION
Fills the addr pointer with the address which the socket is connected. Returns the length of the address in bytes or an error code.
That's the whole plot, no cap. addr gets the connected address, and you get back either the address length in bytes or an error code. π«Ά
SEE ALSO
Kernel file: ./net/socket.c
move_addr_to_kernel(9)move_addr_to_user(9)sock_read_xattr(9)sock_alloc_file(9)sock_from_file(9)sockfd_lookup(9)sock_alloc(9)sock_release(9)sock_sendmsg(9)kernel_sendmsg(9)sock_recvmsg(9)kernel_recvmsg(9)sock_create_lite(9)__sock_create(9)sock_create(9)sock_create_kern(9)sock_register(9)sock_unregister(9)kernel_bind(9)kernel_listen(9)kernel_accept(9)kernel_connect(9)kernel_getsockname(9)kernel_sock_shutdown(9)kernel_sock_ip_overhead(9)
mwah π this lil page comes from source/version ./net, dated October 2026, and it's serving kernel_getpeername(9) realness. periodt. πΈπ
π¦ 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