sock_sendmsg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ sock_sendmsg(9) β€” like, the Kernel API Manual era πŸ’…

okay bestie, welcome to the sock_sendmsg page from the Kernel API Manual β€” yes, that manual, the one that lives rent free in /usr/share/man/man9 πŸŽ€


✨ NAME ✨

sock_sendmsg β€” send a message through @sock πŸ¦‹

🌸 SYNOPSIS 🌸

int sock_sendmsg (struct socket *sock , struct msghdr *msg );

no cap, that's the whole signature. short, iconic, main character energy πŸ’–

🫢 ARGUMENTS 🫢

  • sock β€” a socket. that's it. that's the whole vibe. πŸ”Œ
  • msg β€” the message to send πŸ“¨

πŸ’« DESCRIPTION πŸ’«

So it sends msg through sock, and the way that it does this is by passing through LSM β€” yes, the security hook girlies get their moment, we love a checked path ✨

It returns the number of bytes sent, or an error code. so either a cute little byte count or a whole error situation 😭 that's the deal, fr fr.

πŸ”₯ SEE ALSO πŸ”₯

the kernel file is ./net/socket.c β€” literally the source of truth, go look at her πŸ’…

and the whole friend group, in order:

twenty-five besties and they all slay in their own way, iykyk 🌈


ok that's the whole page, every flag-free detail preserved, no notes πŸ’€

sign-off era: this lil number comes from ./net, dated October 2026, and it's filed under sock_sendmsg(9). mwah, go read the kernel πŸ’‹πŸŒΈ

πŸ“¦ where this page comes from