rtl83xx_setu...lood_control(9)
π rtl83xx_setup_port_flood_control(9) β the kernel API manual, but make it make sense
okay so bestie, welcome to the Kernel API Manual β¨ this one's about rtl83xx_setup_port_flood_control, and yes the header truncated it to rtl83xx_setu...lood_control(9) because even the manpage generator was like "that's too much name for one line" π but we know the full thing now, we're fine, we're slaying.
π NAME π
rtl83xx_setup_port_flood_control β sets up the default flood control for a port π¦
like, that's literally her job description. that's the whole vibe.
β¨ SYNOPSIS β¨
int rtl83xx_setup_port_flood_control (struct realtek_priv *priv , int port );
that's the signature, copy it exactly, do not improvise, this is not a vibes-based coding sitch π
πΈ ARGUMENTS πΈ
privβ arealtek_privpointer. that's your big ol' private data struct, she's holding everything together fr fr.portβ the port index. which port are we flooding? this one. π
π DESCRIPTION π
so what does she actually do? this function enables flooding for a given port. that's it. that's the plot. short queen behavior, we respect it π«Ά
π§ CONTEXT π§
can sleep. π΄
bestie this is important β "can sleep" means you're allowed to call this from a context where sleeping/blocking is legal. don't go calling her from an atomic context, that's not the move, that's giving "I didn't read the manpage" energy π
β RETURN β
0on success π slay- a negative value for failure π something went wrong, check your inputs
π SEE ALSO π
the kernel file lives at ./drivers/net/dsa/realtek/rtl83xx.c β go read her, she's iconic π
and here's the whole friend group, all of them, no one left out:
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_add(9)rtl83xx_port_mdb_del(9)rtl83xx_port_bridge_flags(9)
that's seventeen functions. seventeen. not me counting to make sure I got them all β I did, and I did π
periodt π that's the whole page. flooding enabled, port specified, priv pointer passed, no notes.
and finally, the cute sign-off you were promised: this page comes to you from the source dir ./drivers/net/dsa/realtek, dated October 2026, and it's the rtl83xx_setu...lood_control(9) of the Kernel API Manual. mwah π go forth and flood responsibly π¦β¨
π¦ 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