realtek_mdio_remove(9)
π realtek_mdio_remove(9) β the kernel API manual, but make it make sense β¨
okay so bestie, you found realtek_mdio_remove in the kernel API manual and you're like "what does this even do" β don't worry, I got you π«Ά this is the page for taking a Realtek switch (the MDIO-connected kind) and yeeting it out of existence, gracefully, the way a main character exits a party π
πΈ NAME πΈ
realtek_mdio_remove β remove the driver of an MDIO-connected switch, no cap π₯
π SYNOPSIS π
void realtek_mdio_remove (struct mdio_device *mdiodev );
that's it. that's the whole signature. mdiodev is a struct mdio_device * and the function returns void, so nothing comes back out. iconic, honestly β¨
π¦ ARGUMENTS π¦
mdiodevβ themdio_deviceto be removed. this is the one getting removed. say bye π
π DESCRIPTION π
so like, this function is meant to be used as the .remove in an mdio_driver. that's its whole job, it's literally built for that field π₯Ή
first it unregisters the DSA switch β that part has to happen first, order matters, don't skip it β and then it calls the common remove function. clean, two-step, no drama π
π CONTEXT π
it can sleep π΄ so bestie, do not call this from somewhere that can't sleep. it's giving "process context energy" β respect it π
β RETURN β
nothing. zip. zero. void. it does the thing and comes back with empty hands π«Ά
π SEE ALSO π
- Kernel file
./drivers/net/dsa/realtek/realtek-mdio.c realtek_mdio_probe(9)β the one that puts it in, iykyk π§realtek_mdio_shutdown(9)β the one that shuts it down π
also quick vibe check: the functions listed here arerealtek_mdio_probe(9)andrealtek_mdio_shutdown(9), and the source file lives at./drivers/net/dsa/realtek/realtek-mdio.cβ go read it bestie, you'll learn something πΈ
and that's the whole page, periodt β¨ this one's from the ./drivers/net/dsa/realtek source, dated October 2026 β so if you're reading it in the future, hiiii π congrats on the time travel, mwah π
π¦ 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