rtl83xx_port_mdb_add(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so welcome to the rtl83xx_port_mdb_add(9) page, straight outta the Kernel API Manual πŸ’– bestie, this one is literally:

rtl83xx_port_mdb_add β€” add a multicast database entry to a port database ✨

That's the whole vibe: it's the function that adds a multicast database entry into a port database. Cute, focused, no cap.

✨ SYNOPSIS ✨

int rtl83xx_port_mdb_add (struct dsa_switch *ds , int port , const
       struct switchdev_obj_port_mdb *mdb , struct dsa_db db );

πŸŽ€ ARGUMENTS πŸŽ€

Here's what you're feeding it, bestie:

  • ds β€” DSA switch instance. Like, the switch situation you're working with.
  • port β€” port index. Which port we're talking about.
  • mdb β€” multicast database entry to add. The actual entry, hello.
  • db β€” database where the entry should be added. This is the β€œwhere does it go” parameter.

🌸 DESCRIPTION 🌸

This function adds a multicast database entry to the standalone port database or to a bridge database. That's it, that's the whole job β€” it's giving β€œput the multicast database entry in its rightful database home” energy. πŸ¦‹

🫢 CONTEXT 🫢

Can sleep. Yep, that's the context note, and it's iconic in its brevity. 😴

πŸ’… RETURN πŸ’…

  • 0 on success
  • negative value for failure

So: happy path gives you 0, and anything negative means it did not slay. 😭

🌈 SEE ALSO 🌈

Kernel file: ./drivers/net/dsa/realtek/rtl83xx.c β€” that's the source spot for this whole situation.


mwah πŸ’‹ β€” signing off from ./drivers/net/dsa/realtek, dated October 2026, on the rtl83xx_port_mdb_add(9) page. 🫢

πŸ“¦ where this page comes from