rtl83xx_port_bridge_leave(9)
π rtl83xx_port_bridge_leave β the Kernel API Manual, bestie edition β¨
Okay so real quick, before we get into it: this is rtl83xx_port_bridge_leave(9), and yes it's from the Kernel API Manual (very official, very demure). Lowkey obsessed already. Let's go π
πΈ NAME πΈ
rtl83xx_port_bridge_leave β literally just means leave a bridge, no cap π
π¦ SYNOPSIS π¦
void rtl83xx_port_bridge_leave (struct dsa_switch *ds , int port ,
struct dsa_bridge bridge );
That's the whole vibe check right there. Void function, three args, in and out, periodt β¨
π ARGUMENTS π
dsβ the DSA switch instance π like, the whole switch, the main characterportβ the port index, aka which port we're talking about, iykykbridgeβ the bridge being left π«Ά the one this port is walking away from
β¨ DESCRIPTION β¨
Okay so picture this: a port needs to dip out of a bridge. That's the whole job, and that's what this function handles β removing a port from a bridge. π
It's not just a flounce-and-leave situation though, because it also updates the port isolation masks and the EFID. Both of them. Every time. No skipping steps, bestie π
π§ CONTEXT π§
It can sleep. π΄ That's it, that's the note. So don't go calling it somewhere you're not allowed to catch some Zs, ok? π
β RETURN β
Nothing. Nada. It returns void β no return value, no little gift at the end. And honestly? Iconic. It did the work, it doesn't need to prove anything π
π SEE ALSO π
Kernel file ./drivers/net/dsa/realtek/rtl83xx.c β that's where the magic lives fr fr. And here's the whole friend group, in order:
rtl83xx_lock(9)rtl83xx_unlock(9)rtl83xx_setup_user_mdio(9)rtl83xx_probe(9)rtl83xx_register_switch(9)rtl83xx_unregister_switch(9)rtl83xx_shutdown(9)rtl83xx_remove(9)rtl83xx_port_bridge_join(9)rtl83xx_port_fast_age(9)rtl83xx_port_fdb_add(9)rtl83xx_port_fdb_del(9)rtl83xx_port_fdb_dump(9)rtl83xx_port_mdb_add(9)rtl83xx_port_mdb_del(9)rtl83xx_port_bridge_flags(9)rtl83xx_setup_port_flood_control(9)
Note the rtl83xx_port_bridge_join(9) right there in the mix β the leave function and the join function, reunited, as they should be. π₯Ή
Okay that's the whole page!! Sending you off with the receipts: this one's sourced from ./drivers/net/dsa/realtek and dated October 2026 β go forth and let those ports leave their bridges, bestie ππ¦πβ¨
π¦ 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