rtl83xx_port_bridge_flags(9)
π rtl83xx_port_bridge_flags π
Okay so bestie, welcome to the Kernel API Manual page for rtl83xx_port_bridge_flags β literally the page you want when you're setting bridge flags on a Realtek DSA switch. It's giving kernel-dev main character energy and I'm honestly obsessed. Let's break it down. π«Ά
β¨ NAME β¨
rtl83xx_port_bridge_flags β sets port bridge flags. Slay.
π¦ SYNOPSIS π¦
int rtl83xx_port_bridge_flags (struct dsa_switch *ds , int port , struct
switchdev_brport_flags flags , struct netlink_ext_ack *extack );
π ARGUMENTS π
dsβ the DSA switch instance. That's the switch object we're operating on.portβ the port index. Like, which port are we touching? This one.flagsβ the bridge port flags. The flags themselves, bestie.extackβ the netlink extended ack, used for reporting errors back up the stack. Very demure, very mindful error reporting.
π DESCRIPTION π
This function handles setting bridge port flags β you know, things like learning and flooding. So if you're like "hey bestie, can this port learn?" or "can it flood?", this is the function that sets those flags. Periodt. π₯
β CONTEXT β
Can sleep. π΄ So like, this one is allowed to sleep, iykyk.
π RETURN π
0on success. π- A negative value for failure. π
π SEE ALSO π
Okay here's the group chat. The kernel file is ./drivers/net/dsa/realtek/rtl83xx.c, and it's hanging out with all its friends:
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_bridge_leave(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_setup_port_flood_control(9)
And that's the whole page, bestie! πΈ Source is ./drivers/net/dsa/realtek, and this baby is dated October 2026. Go forth and set those bridge flags. πβ¨
π¦ 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