dsa_tree_notify(9)
π NAME
okay so bestie, welcome to dsa_tree_notify(9) from the Kernel API Manual β this one is literally about executing code for all switches in a DSA switch tree. slay.
β¨ SYNOPSIS
int dsa_tree_notify (struct dsa_switch_tree *dst , unsigned long e ,
void *v );
π ARGUMENTS
dstβ the collection ofstruct dsa_switchdevices you wanna notify. like, the whole squad.eβ the event, and bestie it must be of typeDSA_NOTIFIER_*. no cap.vβ the event-specific value. it's giving "this one depends on the event," iykyk.
π¦ DESCRIPTION
Given a struct dsa_switch_tree, this can be used to run a function once for each member DSA switch. iconic behavior, honestly.
The other alternative for traversing the tree is only through its ports list β and that does not uniquely list the switches. so yeah, that's the whole reason this exists. periodt.
π SEE ALSO
- Kernel file
./net/dsa/switch.c dsa_broadcast(9)
xoxo, this cutie came from ./net/dsa, dated October 2026 πβ¨
π¦ 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