mii_check_link(9)
π NAME π
mii_check_link β check MII link status. This page is from the Kernel API Manual, and itβs giving tiny-but-iconic helper energy, fr fr.
β¨ SYNOPSIS β¨
void mii_check_link (struct mii_if_info *mii );
π ARGUMENTS π
miiβ MII interface. Thatβs the one and only arg, bestie.
π¦ DESCRIPTION π¦
Okay so hereβs the tea: if the link status changed β literally previous != current β then it calls netif_carrier_on if the current link status is Up, or it calls netif_carrier_off if the current link status is Down. No cap, thatβs the whole move. π
π SEE ALSO π
Kernel file: ./drivers/net/mii.c.
mii_ethtool_gset(9)mii_ethtool_get_link_ksettings(9)mii_ethtool_sset(9)mii_ethtool_set_link_ksettings(9)mii_check_gmii_support(9)mii_link_ok(9)mii_nway_restart(9)mii_check_media(9)generic_mii_ioctl(9)
xoxo bestie, this pageβs source/version is ./drivers/net, itβs dated October 2026, and it will always be mii_check_link(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