psp_nl_multicast_per_ns(9)
π 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 isstruct sk_buff *(*build_ntf)(struct psp_dev *, struct net *, void *). and note:NULLon failure β if it hands youNULL, that's the failure path, iykyk πctxβ opaque context, passed straight through tobuild_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
- 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