STRUCT CDX_MCDI_CMD(9)
β¨ NAME β¨
struct cdx_mcdi_cmd β an outstanding MCDI command. Thatβs the whole name, bestie. This page is from the Kernel API Manual, and the main character is literally struct cdx_mcdi_cmd(9). π
Vibe check: this struct is the little receipt for one outstanding MCDI command. No cap, every field is about to get its moment. π«Ά
πΈ SYNOPSIS πΈ
Hereβs the struct, character for character, exactly as it is:
struct cdx_mcdi_cmd {
struct kref ref;
struct list_head list;
struct list_head cleanup_list;
struct work_struct work;
struct cdx_mcdi_iface *mcdi;
enum cdx_mcdi_cmd_state state;
size_t inlen;
const struct cdx_dword *inbuf;
bool quiet;
bool reboot_seen;
u8 seq;
unsigned long started;
unsigned long cookie;
cdx_mcdi_async_completer *completer;
unsigned int handle;
unsigned int cmd;
int rc;
size_t outlen;
struct cdx_dword *outbuf;
};
π«Ά Members π«Ά
Every member, every detail, nothing skipped:
refβ Reference count. There will be one reference if the command is in themcdi_ifacecmd_list, another if itβs on a cleanup list, and a third if itβs queued in the work queue. Three possible refs, iykyk.listβ The data for this entry inmcdi->cmd_list. Thatβs its spot in the list.cleanup_listβ The data for this entry in a cleanup list. π§Ήworkβ The work item for this command, queued inmcdi->workqueue. Work queue behavior, slay.mcdiβ Themcdi_ifacefor this command. Its whole interface connection.stateβ The state of this command. Current status vibes.inlenβinbuflength. πinbufβ Input buffer. Where the input lives.quietβ Whether to silence errors. π€«reboot_seenβ Whether a reboot has been seen during this command, to prevent duplicates. Important: this is the duplicate-prevention flag.seqβ Sequence number. π’startedβ Jiffies this command was started at. Timestamp energy, but in jiffies.cookieβ Context for completion function. πͺcompleterβ Completion function. It completes things, periodt.handleβ Command handle. πcmdβ Command number. Number time.rcβ Return code. Classic rc.outlenβ Length of output buffer. πoutbufβ Output buffer. Where the output goes.
π SEE ALSO π
- Kernel file
./include/linux/cdx/mcdi.h enum cdx_mcdi_mode(9)enum cdx_mcdi_cmd_state(9)struct cdx_mcdi(9)struct cdx_mcdi_iface(9)struct cdx_mcdi_data(9)
Okay bye bestie β this pageβs source/version is ./include/linux/cdx, dated October 2026. ππ
π¦ 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