STRUCT QMI_TXN(9)
π struct qmi_txn β transaction context
okay bestie, welcome to the Kernel API Manual entry for struct qmi_txn β¨ this is literally the transaction context glow-up and we're gonna get into every single field, no skipping, no cap π«Ά
πΈ NAME πΈ
struct qmi_txn β transaction context π«
π SYNOPSIS π
struct qmi_txn {
struct qmi_handle *qmi;
u16 id;
struct mutex lock;
struct completion completion;
int result;
const struct qmi_elem_info *ei;
void *dest;
};
like, that's the whole shape of it, copy it exactly bestie, don't be editing it π
β¨ Members β¨
so every field has main character energy of its own, here's the rundown:
qmiβ the QMI handle that this transaction is associated with π like, the txn's home base, yk?idβ the transaction id π·οΈ (u16, keeping it cute and bounded bestie)lockβ for synchronization between the handler and the waiter of messages π it's giving group-chat mutex energy, nobody talks over each other periodtcompletionβ a completion object, used as the transaction receives a response π the moment the response lands, this lil guy lights upresultβ result code for the completed transaction π how did it go, basicallyeiβ description of the QMI encoded response (optional) π she's optional, don't forgetdestβ destination buffer to decode the message into (optional) π¦ also optional, also iconic
ngl bestie, two of those are optional (eianddest) β the rest are just... there, living their truth π
π¦ SEE ALSO π¦
kernel file ./include/linux/soc/qcom/qmi.h β and the whole friend group:
struct qmi_header(9)struct qmi_elem_info(9)struct qmi_response_type_v01(9)struct qmi_service(9)struct qmi_ops(9)struct qmi_msg_handler(9)struct qmi_handle(9)
go read those too, iykyk π
and that's the whole page bestie π this lil writeup lives over at ./include/linux/soc/qcom, dated October 2026, and it's filed under struct qmi_txn(9) β slay, go forth and transact responsibly ππ
π¦ 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