STRUCT QMI_HANDLE(9)
β¨ struct qmi_handle(9) β¨
okay so bestie, picture this: it's struct qmi_handle(9), the QMI context π
β and this is from the Kernel API Manual, so you know it's giving main character energy. This lil struct is basically the whole vibe of a QMI client: its socket, its locks, its lists, its callbacks. no cap, it's a lot. let's get into it π
πΈ SYNOPSIS πΈ
here's the whole struct, bestie β copy it exactly, don't touch a character:
struct qmi_handle {
struct socket *sock;
struct mutex sock_lock;
struct sockaddr_qrtr sq;
struct work_struct work;
struct workqueue_struct *wq;
void *recv_buf;
size_t recv_buf_size;
struct list_head lookups;
struct list_head lookup_results;
struct list_head services;
struct qmi_ops ops;
struct idr txns;
struct mutex txn_lock;
const struct qmi_msg_handler *handlers;
};
π¦ Members π¦
okay so here's the member-by-member vibe check, every single one of them β¨
sockβ the socket handle π«Άsock_lockβ synchronization ofsockmodifications. don't be out here modifyingsockwithout it, fr frsqβ thesockaddrofsockworkβ the work for handling incoming messageswqβ the workqueue to post work onrecv_bufβ scratch buffer for handling incoming messagesrecv_buf_sizeβ size ofrecv_buf(yes bestie, it knows its own size π )lookupsβ list of registered lookup requestslookup_resultsβ list of lookup-results advertised to the clientservicesβ list of registered services (by this client)opsβ reference to callbackstxnsβ outstanding transactionstxn_lockβ lock for modifications oftxnsπhandlersβ list of handlers for incoming messages
π SEE ALSO π
go read these too, icon behavior honestly π
Kernel file ./include/linux/soc/qcom/qmi.h
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_txn(9)struct qmi_msg_handler(9)
that's the whole tea, bestie π this one's filed under ./include/linux/soc/qcom, dated October 2026, and it's living in the Kernel API Manual with the title struct qmi_handle(9) β periodt. go forth and QMI 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