rtl83xx_port_fdb_add(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 a const unsigned char *, no you may not touch it πŸ™ˆ
  • vid β€” the VLAN ID associated with addr. they come as a matching set, iykyk πŸ‘‘
  • db β€” the database where the entry should be added. a struct 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 ⭐

  • 0 on success πŸŽ‰
  • negative value for failure 😭

🧚 SEE ALSO 🧚

kernel file ./drivers/net/dsa/realtek/rtl83xx.c, plus the whole friend group:


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