sock_sendmsg(9)
π 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:
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)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_getpeername(9)kernel_sock_shutdown(9)kernel_sock_ip_overhead(9)
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
- 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