tipc_msg_build(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– tipc_msg_build(9) πŸ’–

okay so bestie, this page is from the Kernel API Manual, and it's all about tipc_msg_build β€” the function that creates a buffer chain containing the specified header and data. No cap.


✨ NAME ✨

tipc_msg_build β€” create buffer chain containing specified header and data.

πŸŽ€ SYNOPSIS πŸŽ€

int tipc_msg_build (struct tipc_msg *mhdr , struct msghdr *m , int
       offset , int dsz , int pktmax , struct sk_buff_head *list );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • mhdr β€” the message header, to be prepended to data πŸ’…
  • m β€” the user message 🫢
  • offset β€” buffer offset for fragmented messages (FIXME) 😭 β€” yes, the original literally says FIXME, bestie.
  • dsz β€” total length of user data πŸ”₯
  • pktmax β€” max packet size that can be used πŸ‘‘
  • list β€” buffer or chain of buffers to be returned to caller πŸŽ€

🌸 DESCRIPTION 🌸

not me making a recursive call 😭 β€” but it's safe, bestie, because it can logically go only one further level down. periodt. ✨

⭐ RETURN ⭐

you get back the message data size or an errno: -ENOMEM, -EFAULT.

🧚 SEE ALSO 🧚


kisses from ./net/tipc, dated October 2026 β€” tipc_msg_build(9) signing off πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from