__phy_clear_bits_mmd(9)
π
__phy_clear_bits_mmd β the Kernel API Manual tea π«Ά
okay bestie grab a boba, because we're diving into __phy_clear_bits_mmd(9) from the Kernel API Manual and honestly? it's giving "small but mighty" π
β¨ NAME β¨
__phy_clear_bits_mmd β the convenience function for clearing bits in a register on MMD π like, it exists purely so you don't have to hand-roll the whole dance yourself, and we stan a helpful queen
πΈ SYNOPSIS πΈ
int __phy_clear_bits_mmd (struct phy_device *phydev , int devad , u32 regnum , u16 val );
π¦ ARGUMENTS π¦
phydevβ thephy_devicestruct, i.e. the whole vibe of your PHY device π this is the main character you're operating ondevadβ the MMD containing register to modify π« (this is where the register lives, so like, know your address bestie)regnumβ register number to modify π― the exact spot you're pokingvalβ bits to clear π§Ή these are the ones getting yeeted out of existence. not me clearing bits. couldn't be me
π DESCRIPTION π
The caller must have taken the MDIO bus lock. π
fr fr, that's the whole description and it is not a suggestion. no lock, no vibes. don't skip it, bestie π that's the one rule.
π SEE ALSO π
the extended universe, in all its glory β¨:
- Kernel file
./include/linux/phy.hβ the source file, the mothership πΈ enum phy_interface_t(9)phy_modes(9)rgmii_clock(9)struct mdio_bus_stats(9)struct mii_bus(9)mdiobus_alloc(9)enum phy_state(9)struct phy_c45_device_ids(9)struct phy_oatc14_sqi_capability(9)struct phy_device(9)π«Ά (yes, the one from your args)struct phy_tdr_config(9)enum link_inband_signalling(9)struct phy_plca_cfg(9)struct phy_plca_status(9)struct phy_led(9)struct phy_mse_capability(9)struct phy_mse_snapshot(9)struct phy_driver(9)phy_id_compare(9)phy_id_compare_vendor(9)phy_id_compare_model(9)phydev_id_compare(9)phy_is_started(9)phy_driver_is_genphy(9)phy_disable_eee_mode(9)phy_can_wakeup(9)phy_may_wakeup(9)phy_read(9)__phy_read(9)phy_write(9)__phy_write(9)__phy_modify_changed(9)phy_read_mmd_poll_timeout(9)__phy_set_bits(9)__phy_clear_bits(9)phy_set_bits(9)phy_clear_bits(9)__phy_set_bits_mmd(9)phy_set_bits_mmd(9)phy_clear_bits_mmd(9)(that's the non-underscore sibling, go say hi π«Ά)phy_interrupt_is_valid(9)phy_polling_mode(9)phy_has_hwtstamp(9)phy_has_rxtstamp(9)phy_has_tsinfo(9)phy_has_txtstamp(9)phy_is_default_hwtstamp(9)phy_on_sfp(9)phy_interface_mode_is_rgmii(9)phy_interface_mode_is_8023z(9)phy_interface_is_rgmii(9)phy_is_pseudo_fixed_link(9)phy_module_driver(9)
literally a whole friend group, iykyk π
that's the page bestie, no cap β¨ written out of ./include/linux, dated October 2026, and signed off with π __phy_clear_bits_mmd(9) forever and always π
π¦ 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