rtl83xx_port_fdb_dump(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 to cb. 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 πŸ’œ

  • 0 on 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:

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