lan937x_tx_set_mdix(9)
π lan937x_tx_set_mdix(9) β¨
okay so bestie, welcome to the Kernel API Manual π this little cutie is a function page for lan937x_tx_set_mdix(9) β yes the (9) means it's a kernel function, iykyk π
πΈ NAME πΈ
lan937x_tx_set_mdix β it sets the MDIX mode for the LAN937x TX PHY β¨ like literally that's its whole job and it ate π
π¦ SYNOPSIS π¦
int lan937x_tx_set_mdix (struct phy_device *phydev );
that's the whole vibe check right there π«Ά
π ARGUMENTS π
phydevβ a pointer to thephy_devicestruct π§ that's the one and only thing you hand it, bestie
π DESCRIPTION π
so here's the tea β β this function configures the MDIX mode of the LAN937x TX PHY, and it decides everything based on the mdix_ctrl field of the phy_device structure π«
the MDIX mode can be set to one of these three:
- MDI β straight-through, no crossover energy π
- MDIX β crossover, we're crossing those wires bestie π
- AUTO β auto-MDIX, it figures it out itself, main character behaviour π
and then β important β if the mode is not recognized, it just returns 0 without making any changes π no drama, no edits, just vibes and a zero π
β RETURN β
0on success π- a negative error code on failure π
π₯ SEE ALSO π₯
- Kernel file
./drivers/net/phy/microchip.cπ lan937x_tx_read_mdix_status(9)πlan937x_tx_read_status(9)πΈlan937x_tx_config_aneg(9)π
okay that's the whole page, no cap π«Ά source lives over in ./drivers/net/phy, and this little icon was dated October 2026 β periodt, go set some MDIX modes bestie π
β¨
π¦ 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