ENUM CDX_MCDI_CMD_STATE(9)
π 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
- 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