mii_duplex(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 of MII ANAR and ANLPAR, 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:

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