cn_netlink_send_mult(9)
π cn_netlink_send_mult β the kernel-API-manual glow-up β¨
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 ofmsgto 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 β: ifportidandgroupare 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 inmsg. ifgroupis 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 kernel file
./include/linux/connector.h cn_add_callback(9)cn_del_callback(9)cn_netlink_send(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms