psp_nl_multicast_per_ns(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… psp_nl_multicast_per_ns β€” kernel API manual, but make it make sense πŸŽ€

okay bestie, this one's from the Kernel API Manual and it's called psp_nl_multicast_per_ns. the name is lowkey a mouthful but it literally tells you the whole vibe: multicast a notification to each unique netns. periodt. πŸ¦‹


✨ NAME ✨

psp_nl_multicast_per_ns β€” multicast a notification to each unique netns πŸ’Œ

like, one notification, but for every netns that's actually unique. no duplicates, no spam, we're classy here. πŸ‘‘


🌸 SYNOPSIS 🌸

void psp_nl_multicast_per_ns (struct psp_dev *psd , unsigned int group ,
       struct sk_buff *(*build_ntf)(struct psp_dev *, struct net *, void *) ,
       void *ctx );

she takes a device, a group, a callback, and some opaque context. four things. that's the whole fit. 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • psd β€” the PSP device. and listen, it must be locked πŸ”’ β€” like, do not come to this function unlocked, that's not the energy we're bringing today. ngl this is the one caveat that actually matters.
  • group β€” the multicast group. unsigned int, that's your group number, go off. πŸ’…
  • build_ntf β€” a callback that builds an skb for a given netns. its signature is struct sk_buff *(*build_ntf)(struct psp_dev *, struct net *, void *). and note: NULL on failure β€” if it hands you NULL, that's the failure path, iykyk 😭
  • ctx β€” opaque context, passed straight through to build_ntf. she's just a messenger, don't ask her what's inside. πŸ™ˆ

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the actual plot. 🍿

it iterates all unique network namespaces β€” and where do those come from? from the associated device list, plus the main device's netns. so yes, the main device's netns is in the mix too, don't forget her, she's main character energy. πŸ‘‘

for each unique netns, it calls build_ntf to construct a notification skb, and then multicasts it. that's it. that's the function. iterate, build, multicast, repeat. ate and left no crumbs. πŸ”₯

key word is unique bestie β€” the whole point is each netns gets it once, not once per whatever. the dedup is the serve. πŸ’…

⭐ SEE ALSO ⭐

  • Kernel file ./net/psp/psp_nl.c β€” go read the source, she's right there, no cap πŸ“–βœ¨

and that's the whole page, bestie! 🧚 this cutie came from the man page source ./net/psp, dated October 2026, and it's the psp_nl_multicast_per_ns(9) page. slay, go multicast responsibly πŸ’–πŸŒˆ

πŸ“¦ where this page comes from