mii_duplex(9)
π mii_duplex(9) π
okay so bestie, welcome to the mii_duplex(9) page from the Kernel API Manual β yes we're in the kernel API manual, yes it's giving big-brain energy, and yes you're gonna get it. π§β¨
β¨ NAME β¨
mii_duplex β literally it's just the function name up here with... nothing after the dash. yeah. the description slot is empty, no cap. iconic minimalism honestly, we love a mystery π
πΈ SYNOPSIS πΈ
unsigned int mii_duplex (unsigned int duplex_lock , unsigned int
negotiated );
look at her. two unsigned int args in, one unsigned int out. she's simple, she's clean, she's serving function signature realness π
π¦ ARGUMENTS π¦
duplex_lockβ non-zero if duplex is locked at full π like, if this one is nonzero it means the duplex got locked at full, mmkay? full duplex main character behavior.negotiatedβ value of MII ANAR and'd with ANLPAR π«Ά that's the bitwise-AND ofMII ANARandANLPAR, exactly as stated. yes those are the names. no we are not renaming them. periodt.
π DESCRIPTION π
so this one is "a small helper function for a common case." that's the whole pitch, fr fr. she's little, she's useful, she handles a thing that happens all the time.
what she returns:
- returns one if the media is operating at full duplex or locked at full duplex β
- returns zero otherwise β
that's it. that's the function. one or zero, full duplex or not. honestly? obsessed with the clarity π
π SEE ALSO π
and now, bestie, the friend group. the whole squad. the mii/ethtool/linkmode extended cinematic universe π every single one of these is a real reference from the page, linked with (9) like a little badge of honor:
- Kernel file
./include/linux/mii.hπ mii_nway_result(9)ethtool_adv_to_mii_adv_t(9)linkmode_adv_to_mii_adv_t(9)mii_adv_to_ethtool_adv_t(9)ethtool_adv_to_mii_ctrl1000_t(9)linkmode_adv_to_mii_ctrl1000_t(9)mii_ctrl1000_to_ethtool_adv_t(9)mii_lpa_to_ethtool_lpa_t(9)mii_stat1000_to_ethtool_lpa_t(9)mii_stat1000_mod_linkmode_lpa_t(9)ethtool_adv_to_mii_adv_x(9)mii_adv_to_ethtool_adv_x(9)mii_adv_mod_linkmode_adv_t(9)mii_adv_to_linkmode_adv_t(9)mii_lpa_to_linkmode_lpa_t(9)mii_lpa_mod_linkmode_lpa_t(9)linkmode_adv_to_lcl_adv_t(9)mii_lpa_mod_linkmode_x(9)linkmode_adv_to_mii_adv_x(9)mii_advertise_flowctrl(9)mii_resolve_flowctrl_fdx(9)mii_bmcr_encode_fixed(9)
like?? the conversion-function lore is deep. iykyk π
π quick vibe check: the media is operating or locked at full duplex β1. anything else β0. don't overthink her, she's a helper. π
okay that's the page!! mwah π this one lives in ./include/linux, dated October 2026, and it's filed under mii_duplex(9) in the Kernel API Manual β go forth and check your duplex, bestie, you've got this π₯ππ«Ά
π¦ 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