rtl83xx_port_fdb_add(9)
π rtl83xx_port_fdb_add β bestie edition
okay so this is a page from the Kernel API Manual and honestly it's giving "small function, big responsibilities" energy, so let's get into it β¨
πΈ NAME πΈ
rtl83xx_port_fdb_add β literally adds a static FDB entry to a port database. that's it, that's the whole vibe π
β¨ SYNOPSIS β¨
int rtl83xx_port_fdb_add (struct dsa_switch *ds , int port , const
unsigned char *addr , u16 vid , struct dsa_db db );
so we're returning an int, and bestie, the args are a whole little squad:
π«Ά ARGUMENTS π«Ά
dsβ the DSA switch instance. the main character, the reason we're all here πportβ port index. which port? that one. this one. the one you're pointing at π₯addrβ the MAC address to add. yes it's aconst unsigned char *, no you may not touch it πvidβ the VLAN ID associated withaddr. they come as a matching set, iykyk πdbβ the database where the entry should be added. astruct dsa_db, cute π
π¦ DESCRIPTION π¦
so what this icon does is add a static unicast FDB entry β key word static, key word unicast, no cap β to either the standalone port database or to a bridge database. that's the whole job. it's giving "I have one task and I ate" π
π CONTEXT π
Can sleep.
that's it. that's the whole section. yes, it can sleep, and honestly same, bestie, same π
β RETURN β
0on success π- negative value for failure π
π§ SEE ALSO π§
kernel file ./drivers/net/dsa/realtek/rtl83xx.c, plus the whole friend group:
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_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)
and that's the page!! π this whole thing lives at ./drivers/net/dsa/realtek, it's dated October 2026, and it's filed under rtl83xx_port_fdb_add(9) β go forth and add your static unicast FDB entries, bestie, you got this πβ¨
π¦ 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