ENUM EFX_MCDI_MODE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ NAME πŸ¦‹

enum efx_mcdi_mode β€” MCDI transaction mode. Okay so this is from the Kernel API Manual, and it’s short but honestly iconic. Let’s get into it, bestie.


✨ SYNOPSIS ✨

Here’s the exact enum shape β€” keep the commas and spacing exactly as shown, no cap:

enum efx_mcdi_mode {
    MCDI_MODE_POLL ,
    MCDI_MODE_EVENTS ,
    MCDI_MODE_FAIL

};

πŸ’… Constants πŸ’…

These three constants are giving very different energy:

  • MCDI_MODE_POLL β€” poll for MCDI completion, until timeout
  • MCDI_MODE_EVENTS β€” wait for an mcdi_event. On timeout, poll once
  • MCDI_MODE_FAIL β€” we think MCDI is dead, so fail-fast all calls
Bestie, MCDI_MODE_FAIL is literally the β€œwe’re so done” mode: if we think MCDI is dead, all calls fail fast. πŸ’€

🌈 SEE ALSO 🌈

Go peek at these if you wanna keep the kernel lore straight:

  • Kernel file ./drivers/net/ethernet/sfc/siena/mcdi.h β€” plus enum efx_mcdi_state(9), struct efx_mcdi_iface(9), and struct efx_mcdi_data(9)

Mwah πŸ’‹ β€” this cutie lives in ./drivers/net/ethernet/sfc/siena, dated October 2026, and it’s the page for enum efx_mcdi_mode(9). Slay. πŸŽ€

πŸ“¦ where this page comes from