cn_netlink_send(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to the glow-up of cn_netlink_send(9) ✨ this is a kernel API manual page and it's genuinely iconic once you clock what it does: it sends a message to the specified groups. that's the whole vibe. let's get into it πŸŽ€


✨ NAME ✨

cn_netlink_send β€” literally just sends a message to the specified groups. no cap, that's the job πŸ’…

🌸 SYNOPSIS 🌸

int cn_netlink_send (struct cn_msg *msg , u32 portid , u32 group , gfp_t
gfp_mask );

that's the whole signature, copy it exactly bestie, don't get creative with it 🫢

πŸ¦‹ ARGUMENTS πŸ¦‹

  • msg β€” the message header, with the data attached to it. it's giving "payload with a passport" πŸ’–
  • portid β€” the destination port. if it's non-zero, the message goes to that given port, which honestly should be set to the original sender. keep that in mind, iykyk πŸ‘€
  • group β€” the destination group, and this one has layers okay:
    • if portid and group are both zero, then the appropriate group gets searched through all the registered connector users, and the message gets delivered to the group that was created for the user with the same ID as in msg. sleuthing behavior, main character energy πŸ”
    • if group is not zero, the message gets delivered straight to that specified group. no searching, no drama, periodt ✨
  • gfp_mask β€” the GFP mask. that's it, that's the whole description, we love a low-maintenance argument 😌

πŸ”₯ DESCRIPTION πŸ”₯

okay so the important stuff: you can safely call this from softirq context πŸ‘‘ but heads up β€” it may silently fail under strong memory pressure. like it just won't tell you, it'll ghost you πŸ’€ so don't be surprised.

also, if there are no listeners for the given group, -ESRCH can be returned. no listeners, no delivery, that's the rule πŸ™ˆ

πŸ’œ SEE ALSO πŸ’œ

go read those too, they're the friend group 🫢


and that's the page bestie!! 🌈 source and version vibes: this one lives in ./include/linux, dated October 2026 β€” so yeah, technically from the future, and it ate β­πŸ§šπŸ’…

πŸ“¦ where this page comes from