dsa_lag_unmap(9)
π dsa_lag_unmap β from the Kernel API Manual, section 9, bestie
okay so picture this: you're deep in the kernel, section 9 of the manual, and you need to unmap a LAG ID. that's the whole vibe. dsa_lag_unmap is the function that does the un-mapping, and honestly? she's a team player about it. π
β¨ SYNOPSIS β¨
void dsa_lag_unmap (struct dsa_switch_tree *dst , struct dsa_lag *lag );
no return value, no drama β it's void, she just does the thing and dips. π¦
πΈ ARGUMENTS πΈ
dstβ the tree π³ where the mapping is recorded. like, the official record-holder. that's where the paperwork lives.lagβ thestruct dsa_lagthat was mapped. the one getting un-mapped. her moment. π
π DESCRIPTION π
so here's the tea, and it's genuinely important: there might be multiple users of that mapping. like, several besties sharing the same locker. so dsa_lag_unmap does not just yank it β it only removes the mapping if there are no other references to it. π«Ά
no cap, that's the whole rule. reference count hits zero? mapping's gone. somebody else still holding on? it stays. respect the refcount, periodt. π
lowkey the most responsible function in the file and i'm obsessed with her for it β¨
π¦ SEE ALSO π¦
- Kernel file
./net/dsa/dsa.cβ the source, the mothership, the origin story π§ dsa_lag_map(9)β the other half of the duo, the mapping to this unmapping. they're giving complementary energies fr fr π₯
and that's the page!! π this little gem comes to you from ./net/dsa, dated October 2026 β screenshot it, cite it, tell your friends, iykyk ππ
π¦ 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