sock_recvmsg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’Œ sock_recvmsg(9) β€” from the Kernel API Manual, bestie πŸ’Œ

okay so picture this: it's a kernel API manual page, it's called sock_recvmsg(9), and it's literally about catching messages on a socket. i got you. let's go 🫢


✨ NAME ✨

sock_recvmsg β€” receive a message from @sock πŸ’… (yes the @ is in the original, it's giving very "i'm addressing the socket directly")


🌸 SYNOPSIS 🌸

int sock_recvmsg (struct socket *sock , struct msghdr *msg , int flags
);

three args, one int out, no cap. πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • sock β€” socket πŸ’–
  • msg β€” message to receive 🌸
  • flags β€” message flags ⭐

that's the whole lineup, bestie. no hidden extras, i checked.


πŸ”₯ DESCRIPTION πŸ”₯

so what it does: it receives msg from sock, passing through LSM. πŸ‘‘

and what it gives back? the total number of bytes received, or an error. that's it. that's the whole vibe check. πŸ’€

lowkey important: "or an error" is doing a LOT of work in that sentence β€” always check your return value, bestie, don't just assume the bytes arrived. πŸ™ˆ

🌈 SEE ALSO 🌈

the kernel file is ./net/socket.c and honestly the friend group here is HUGE, so buckle up 🧚:

like i said. entire friend group. all iconic, all in the group chat. πŸ’œ


and that's the page!! πŸŽ€ this little cutie comes from ./net, dated October 2026, and the header on it was sock_recvmsg(9) from the Kernel API Manual β€” mwah, slay, periodt. πŸ’…βœ¨πŸ“

πŸ“¦ where this page comes from