ENUM CDX_MCDI_CMD_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… enum cdx_mcdi_cmd_state(9) πŸ’…

okay bestie, welcome to the Kernel API Manual ✨ this one's all about enum cdx_mcdi_cmd_state β€” literally just the state tracker for one single MCDI command. that's it. that's the whole vibe. πŸŽ€


🌸 NAME 🌸

enum cdx_mcdi_cmd_state β€” the state for an individual MCDI command, no cap πŸ’–


✨ SYNOPSIS ✨

enum cdx_mcdi_cmd_state {
    MCDI_STATE_QUEUED ,
    MCDI_STATE_RETRY ,
    MCDI_STATE_RUNNING ,
    MCDI_STATE_RUNNING_CANCELLED ,
    MCDI_STATE_FINISHED

};

πŸ¦‹ Constants πŸ¦‹

these are the five moods a command can be in, and honestly? relatable. 😭

  • MCDI_STATE_QUEUED β€” the command hasn't started yet, it's just sitting there waiting for its turn to run. main character energy but make it queue 🫢
  • MCDI_STATE_RETRY β€” the command got submitted and then MC was like "nope, no resources for you" because MC already has too many outstanding commands. it will get retried once another command returns. it's giving rejected-but-not-really πŸ’€
  • MCDI_STATE_RUNNING β€” the command was accepted and it's running right now. slay πŸ”₯
  • MCDI_STATE_RUNNING_CANCELLED β€” the command is running, BUT the issuer cancelled it. awkward. πŸ™ˆ
  • MCDI_STATE_FINISHED β€” processing of this command has completed. periodt. πŸ‘‘

πŸ” SEE ALSO πŸ”

go peek at the kernel file ./include/linux/cdx/mcdi.h for the whole friend group: enum cdx_mcdi_mode(9), struct cdx_mcdi(9), struct cdx_mcdi_cmd(9), struct cdx_mcdi_iface(9), and struct cdx_mcdi_data(9). iykyk 🌈


and that's the page, bestie!! 🧚 sign-off time: this little gem lives in ./include/linux/cdx and it's dated October 2026 ⭐ enum cdx_mcdi_cmd_state(9) out, mwah πŸ’œπŸŒΈ

πŸ“¦ where this page comes from