rtl83xx_probe(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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:


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