mdio_device_remove(9)
π NAME π
okay so this is mdio_device_remove(9) from the Kernel API Manual, and it's giving βcleanup eraβ β¨. The one-liner is: mdio_device_remove - Remove a previously registered mdio device from the MDIO bus. No cap, that's the whole vibe. π¦
π SYNOPSIS π
void mdio_device_remove (struct mdio_device *mdiodev );
π§ ARGUMENTS π§
mdiodevβ themdio_devicestructure to remove. literally hand it over and it gets removed from the bus. π
π DESCRIPTION π
okay bestie, real talk: this function doesn't free the mdio_device itself. It merely reverses the effects of mdio_device_register. That's the entire assignment. π«Ά
So after you call mdio_device_remove, if you actually want the device freed, you use mdio_device_free to free the device after calling this function. Do not skip that step, iykyk. π
β οΈ reminder: remove β free. This call is the βundo the registerβ moment, not the βdestroy the structβ moment. Use mdio_device_free afterward for that. π
π SEE ALSO π
- Kernel file
./drivers/net/phy/mdio_device.c mdio_device_register_reset(9)mdio_device_unregister_reset(9)mdio_device_register(9)mdio_probe(9)mdio_driver_register(9)
source/version: ./drivers/net/phy Β· date: October 2026 Β· page: mdio_device_remove(9) π«Άπ
π¦ 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