STRUCT QMI_HEADER(9)
π struct qmi_header(9) π
okay so bestie, welcome to the Kernel API Manual entry for struct qmi_header β the literal wireformat header of QMI messages β¨ like, this is the little header that rides in front of every QMI message on the wire, and honestly? iconic.
πΈ NAME πΈ
struct qmi_header β the wireformat header of QMI messages, no cap π
π¦ SYNOPSIS π¦
struct qmi_header {
u8 type;
__le16 txn_id;
__le16 msg_id;
__le16 msg_len;
};
that's the whole struct, she's small but she's main character energy π
β¨ Members β¨
typeβ the type of message π this is au8, so just a lil one-byte vibe check.txn_idβ the transaction id π it's a__le16, so little-endian, periodt.msg_idβ the message id π¦ also a__le16, also little-endian, ikyk.msg_lenβ the length of the message payload that follows the header π__le16again, keeping it consistent, we love to see it.
π SEE ALSO π
- the Kernel file
./include/linux/soc/qcom/qmi.hπ (this is where she lives, fr fr) struct qmi_elem_info(9)struct qmi_response_type_v01(9)struct qmi_service(9)struct qmi_ops(9)struct qmi_txn(9)struct qmi_msg_handler(9)struct qmi_handle(9)
like, the whole qmi friend group honestly π«Ά go read all of them.
and that's the page!! π this one came from ./include/linux/soc/qcom, dated October 2026, and yes it's still struct qmi_header(9) at the bottom too π mwah, love u, go read your headers π§β
π¦ 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