nlmsg_notify(9)
π nlmsg_notify(9) β like, the kernel API manual page, bestie
Okay so this is nlmsg_notify(9) straight out of the Kernel API Manual, and it's literally the little function that goes "hey, psst, something happened" over netlink. Not me being obsessed with a notification sender but here we are π
β¨ NAME β¨
nlmsg_notify β send a notification netlink message
Like, that's it. That's the whole job. It sends a notification netlink message. Slay π
πΈ SYNOPSIS πΈ
int nlmsg_notify (struct sock *sk , struct sk_buff *skb , u32 portid ,
unsigned int group , int report , gfp_t flags );
Returns an int. Takes six args. No cap, that's the whole signature π
π¦ ARGUMENTS π¦
Okay bestie, let's go through these one by one, iykyk:
skβ the netlink socket to use. Like the phone you're making the call from πskbβ the notification message itself. The actual tea being delivered βportidβ destination netlink portid for reports, or0. So either you name a port, or you put0and say "whatever" πgroupβ destination multicast group, or0. Same energy: name a group or hit it with a0πreportβ1to report back,0to disable. Binary icon behaviour, honestly πflagsβ allocation flags. The boring-but-important ones, ngl π«Ά
Fr fr, notice howportidandgroupboth take0as a "nope, none" value, andreportis a straight1/0vibe check. Don't get them twisted π
π₯ SEE ALSO π₯
Kernel file ./net/netlink/af_netlink.c
__netlink_ns_capable(9)netlink_ns_capable(9)netlink_capable(9)netlink_net_capable(9)netlink_set_err(9)netlink_change_ngroups(9)
Go read those if you want the full netlink cinematic universe, it's giving main character energy β¨
π and that's the page!! π
Little sign-off moment: this icon lives in ./net/netlink, and the page is dated October 2026 β so yeah, future-coded but fully current π Go forth and notify, bestie, you're gonna ate ππ¦β
π¦ 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