rtl83xx_port_mdb_add(9)
π 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 π
0on 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.
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_fdb_dump(9)rtl83xx_port_mdb_del(9)rtl83xx_port_bridge_flags(9)rtl83xx_setup_port_flood_control(9)
mwah π β signing off from ./drivers/net/dsa/realtek, dated October 2026, on the rtl83xx_port_mdb_add(9) page. π«Ά
π¦ 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