nlmsg_notify(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’Œ 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, or 0. So either you name a port, or you put 0 and say "whatever" πŸ™ˆ
  • group β€” destination multicast group, or 0. Same energy: name a group or hit it with a 0 πŸ’€
  • report β€” 1 to report back, 0 to disable. Binary icon behaviour, honestly 🌈
  • flags β€” allocation flags. The boring-but-important ones, ngl 🫢
Fr fr, notice how portid and group both take 0 as a "nope, none" value, and report is a straight 1/0 vibe check. Don't get them twisted πŸ’–

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./net/netlink/af_netlink.c

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