rtl83xx_probe(9)
πΈ rtl83xx_probe(9) β Kernel API Manual, bestie edition πΈ
okay so you're in the kernel API manual, section 9, and today's main character is rtl83xx_probe π
β¨ NAME β¨
rtl83xx_probe β probe a Realtek switch. that's it, that's the vibe π
π¦ SYNOPSIS π¦
struct realtek_priv * rtl83xx_probe (struct device *dev , const struct
realtek_interface_info *interface_info );
like, she takes a device and some interface info and hands you back a struct realtek_priv * π«Ά
πΈ ARGUMENTS πΈ
devβ the device being probed. yes, that one. the device. πinterface_infoβ the specific management interface info. specific! not vague! don't come at her with vibes, she wants specific management interface info β¨
π DESCRIPTION π
so what she actually does: this function initializes realtek_priv and reads data from the device tree node. iconic behavior, no notes π₯
also, the switch is hard resetted if a method is provided. like, full factory-reset energy. if a method is provided, bestie β that's the condition, don't forget it π
and here's the part that's genuinely a gift: the realtek_priv pointer does not need to be freed, because it is controlled by devres. so put the free() down, step away from the free(), she's got it handled ππ«Ά
π§ CONTEXT π§
Can sleep. π΄ that's the whole section. she naps. plan accordingly β don't be calling her from somewhere that can't sleep, iykyk π
β RETURN β
Pointer to the realtek_priv on the win π or ERR_PTR in case of failure π β so like, always be checking, fr fr.
π SEE ALSO π
Kernel file ./drivers/net/dsa/realtek/rtl83xx.c, plus the whole friend group:
rtl83xx_lock(9)rtl83xx_unlock(9)rtl83xx_setup_user_mdio(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)rtl83xx_setup_port_flood_control(9)
that's the page!! mwah π this one lives in ./drivers/net/dsa/realtek, dated October 2026, and it's rtl83xx_probe(9) all the way down. go probe something, bestie, and remember: devres has your back πβ¨
π¦ 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