rtl83xx_port_fdb_dump(9)
π rtl83xx_port_fdb_dump(9) β the Kernel API Manual glow-up π
okay so bestie, welcome to the rtl83xx_port_fdb_dump(9) page!! this is from the Kernel API Manual and it's literally the lil function that goes through a port's FDB and tells you about every entry π¦
β¨ NAME β¨
rtl83xx_port_fdb_dump β the way this one iterates over the FDB entries that are associated with a port. that's it, that's the vibe π
πΈ SYNOPSIS πΈ
int rtl83xx_port_fdb_dump (struct dsa_switch *ds , int port ,
dsa_fdb_dump_cb_t *cb , void *data );
it returns an int, and it takes those four things up there. keep reading, i'm gonna break them down one by one π«Ά
π ARGUMENTS π
dsβ the DSA switch instance. like, the whole switch, the main character of this call πportβ the port index. this is the port we're dumping the FDB for, periodt.cbβ the callback, and no cap it gets invoked for each entry. every single matching one πdataβ an opaque pointer that gets passed tocb. it just gets carried along for the ride, we don't look inside it π
π§ DESCRIPTION π§
so this function walks the unicast FDB entries associated with port, and calls cb for each matching entry. yes, literally every match gets a callback, that's the whole thing. she's an iterator and she ate π₯
β CONTEXT β
can sleep. π΄ lowkey the easiest context note ever β no spinning, no "don't call me from here", just a nap-friendly function. slay.
π RETURN π
0on success π- or a negative value for failure π
that's it, that's the whole return contract, iykyk.
π SEE ALSO π
kernel file ./drivers/net/dsa/realtek/rtl83xx.c β go read the source bestie, it's giving main character energy:
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_mdb_add(9)rtl83xx_port_mdb_del(9)rtl83xx_port_bridge_flags(9)rtl83xx_setup_port_flood_control(9)
look at that roster, it's iconic, the whole realtek DSA friend group came out for this one π§β¨
and that's the page!! π this beauty lives in ./drivers/net/dsa/realtek and the manual date is October 2026 β so mark your calendar bestie, go forth and dump some FDB entries πβ¨π
π¦ 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