tipc_sendmsg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’Œ tipc_sendmsg(9) β€” the kernel API manual, bestie edition πŸŽ€

okay so you found the tipc_sendmsg(9) page in the Kernel API Manual, and honestly? it's a little cutie. let's get into it πŸ’…


✨ NAME ✨

tipc_sendmsg β€” send a message in a connectionless manner πŸ¦‹

no connection, no strings, just vibes and a destination you gotta spell out yourself. periodt.


🌸 SYNOPSIS 🌸

int tipc_sendmsg (struct socket *sock , struct msghdr *m , size_t dsz );

look at that signature. iconic. she takes three things and she's not sorry about it πŸ’–


🫢 ARGUMENTS 🫢

  • sock β€” the socket structure, aka the whole entire main character of this function 🌟
  • m β€” the message you wanna send, the actual payload-bearer 🧚
  • dsz β€” how many bytes of user data you're sending. the receipts. the count. keep it accurate bestie πŸ”₯

πŸ’€ DESCRIPTION πŸ’€

so here's the tea: your message must have a destination specified explicitly. no autocorrect, no guessing, no "she'll figure it out." you say where it goes, or nothing happens πŸ™ˆ

this one's used for SOCK_RDM and SOCK_DGRAM messages β€” the connectionless girlies β€” and also for 'SYN' messages on SOCK_SEQPACKET and SOCK_STREAM connections ⭐

🚨 important warning, ngl: 'SYN+' is prohibited on SOCK_STREAM. do not try it. it's not giving. it's giving error. πŸ’€

🌈 RETURN 🌈

on success? she returns the number of bytes sent πŸ’– on failure? errno otherwise. that's it, that's the whole mood 😭


πŸ‘‘ SEE ALSO πŸ‘‘

the whole group chat, fr fr β€” every single one of these is on the list, no cap:

like, that's a lot of friends. she's connected πŸ’… iykyk.


and that's the page!! mwah πŸ’‹ sourced straight from ./net/tipc, dated October 2026 β€” big slay, big nostalgia, hug your local kernel hacker for me πŸ«Άβœ¨πŸ“

πŸ“¦ where this page comes from