cn_netlink_send_mult(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, so this one is a kernel API manual page for cn_netlink_send_mult(9), and honestly it's giving "send a message to your group chat but make it netlink" 🫢. Let's get into it.


🌸 NAME 🌸

cn_netlink_send_mult β€” sends a message to the specified groups. that's it, that's the whole vibe πŸ’…


✨ SYNOPSIS ✨

int cn_netlink_send_mult (struct cn_msg *msg , u16 len , u32 portid ,
u32 group , gfp_t gfp_mask , netlink_filter_fn filter , void
*filter_data );

seven arguments, zero chill. let's meet them πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • msg β€” the message header (with the attached data riding along with it, iykyk).
  • len β€” the number of msg to be sent. yes, number of msg. that's the wording, we respect it.
  • portid β€” the destination port. if it's non-zero, the message goes to that given port, and bestie, that port should be set to the original sender. lowkey important 🫢
  • group β€” the destination group. here's the tea β˜•: if portid and group are zero, then the appropriate group gets searched through all registered connector users, and the message is delivered to the group that was created for the user with the same ID as in msg. if group is not zero, then the message goes straight to that specified group. slay, simple.
  • gfp_mask β€” the GFP mask. iconic, no notes.
  • filter β€” the filter function that gets used at the netlink layer.
  • filter_data β€” the filter data that gets supplied to the filter function. matching set, we love to see it πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the thing: it can be safely called from softirq context ✨ β€” but it may silently fail under strong memory pressure 😭. not me getting ghosted by my own syscall.

and if there are no listeners for the given group, then -ESRCH can be returned. fr fr, know the error code before you come for her πŸ’€


🌈 SEE ALSO 🌈

the whole connector cinematic universe, we stan πŸŽ¬πŸ‘‘


πŸ’‘ friendly reminder: every flag, number, path and error code above is exactly as the original page says it. no invented lore, no cap.

mwah πŸ’‹ this page lives in ./include/linux and is dated October 2026 β€” so go forth, call your groups, filter your data, and remember: softirq-safe but memory-pressure-shy. bye bestie!! πŸ’œπŸ¦‹βœ¨

πŸ“¦ where this page comes from