STRUCT QMP(9)
struct qmp(9) π
okay so this is from the Kernel API Manual, and we're about to get into the driver-state of it all. no cap, this struct is lowkey the main character. π
πΈ NAME πΈ
struct qmp β driver state for QMP implementation. it's giving "everything the driver needs to keep its little life together," and honestly? obsessed. β¨
β¨ SYNOPSIS β¨
struct qmp {
void __iomem *msgram;
struct device *dev;
struct mbox_client mbox_client;
struct mbox_chan *mbox_chan;
size_t offset;
size_t size;
wait_queue_head_t event;
struct mutex tx_lock;
struct clk_hw qdss_clk;
struct qmp_cooling_device *cooling_devs;
struct dentry *debugfs_root;
struct dentry *debugfs_files[QMP_DEBUGFS_FILES];
};
π«Ά Members π«Ά
msgramβiomemreferencing the message RAM used for communication. the message RAM is literally right there, bestie. π«Άdevβ reference to QMP device. it's the device link-up, periodt. πmbox_clientβ mailbox client used to ring the doorbell on transmit. yes, we're ringing the doorbell, slay. πmbox_chanβ mailbox channel used to ring the doorbell on transmit. same doorbell energy, different field. πoffsetβ offset withinmsgramwhere messages should be written. so this is where the writing goes down. βοΈsizeβ maximum size of the messages to be transmitted. the literal size limit, no cap. πeventβwait_queuefor synchronization with the IRQ. IRQ sync moment, iconic. β³tx_lockβ provides synchronization between multiple callers ofqmp_send. multiple callers? not on this lock's watch. πqdss_clkβ QDSS clock hw struct. clock hardware representation, we love to see it. β°cooling_devsβ thermal cooling devices. thermal cooling besties, assembled. π§debugfs_rootβ directory for the developer/tester interface. the developer/tester girlies have a home. πdebugfs_filesβ array of individual debugfs entries underdebugfs_root. every entry is a little debugfs star. β
π SEE ALSO π
Kernel file ./drivers/soc/qcom/qcom_aoss.c β meet qmp_send(9), qmp_get(9), and qmp_put(9). go read the friends, bestie, iykyk. π¦π
source/version + date sign-off: this page comes from ./drivers/soc/qcom, dated October 2026, under the title struct qmp(9). that's the footer situation, and it ate. ππ
π¦ 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