kernel_getpeername(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 β€” socket
  • addr β€” 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


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