genlmsg_mult...tns_filtered(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… genlmsg_mult...tns_filtered(9) πŸ’…

okay so bestie, this is a page from the Kernel API Manual β€” yes, the kernel, that big scary thing, but you've got this 🫢. Buckle up, we're sending netlink messages to a specific netns with a filter function and honestly? it's giving main character energy ✨


🌸 NAME 🌸

genlmsg_multicast_netns_filtered β€” multicast a netlink message to a specific netns with filter function πŸ’Œ

Like, you're broadcasting a message, but only to one net namespace, and there's a filter function deciding who actually gets it. icon behavior, no cap.


πŸŽ€ SYNOPSIS πŸŽ€

int genlmsg_multicast_netns_filtered (const struct genl_family *family ,
struct net *net , struct sk_buff *skb , u32 portid , unsigned int group
, gfp_t flags , netlink_filter_fn filter , void *filter_data );

she takes eight arguments. eight! and every single one matters, bestie 🌈.


✨ ARGUMENTS ✨

  • family β€” the generic netlink family 🧚 this is the whole family situation you're repping.
  • net β€” the net namespace 🌐 the specific one. not all of them. this one.
  • skb β€” netlink message as socket buffer πŸ“¦ your message, packaged up all cute in a socket buffer.
  • portid β€” own netlink portid to avoid sending to yourself πŸ™ˆ like, hi, please don't text yourself, that's what this is for.
  • group β€” offset of multicast group in groups array πŸ”’ an offset, bestie, not the group itself. keep that in mind, iykyk.
  • flags β€” allocation flags βš™οΈ the usual allocation flags situation.
  • filter β€” filter function πŸ•΅οΈ the vibe check, basically. decides who's worthy.
  • filter_data β€” filter function private data πŸ”’ private data that gets passed along to that filter function. very exclusive, very private.

🌟 RETURN 🌟

0 on success πŸŽ‰, negative error code for failure 😭.

that's it. that's the deal. zero equals slay, negative equals not slay.


πŸ¦‹ SEE ALSO πŸ¦‹

bestie there is so much here, and you know we're listing every single one πŸ’œ β€” from the kernel file ./include/net/genetlink.h:


πŸ’€ reminder: genlmsg_parse_deprecated is literally called deprecated β€” the name is not subtle, bestie. it's right there in the name. don't say i didn't warn you.

okay that's the whole page!! every argument, every option, every single SEE ALSO reference β€” nothing skipped, nothing merged, we ate and left no crumbs πŸ‘‘

this lil gem lives in <code>./include/net</code>, dated October 2026 β€” mwah, love that for us πŸ’–βœ¨

πŸ“¦ where this page comes from