STRUCT QMI_OPS(9)
β¨ struct qmi_ops(9) β Kernel API Manual β¨
okay so bestie, welcome to the struct qmi_ops(9) page π this is from the Kernel API Manual and it's literally the callback collection for qmi_handle β think of it as the little contact list of "hey, ping me when this happens" functions. no cap, it's giving main character energy for the QMI subsystem π¦
πΈ NAME πΈ
struct qmi_ops β the callbacks for qmi_handle, periodt π
β SYNOPSIS β
struct qmi_ops {
int (*new_server)(struct qmi_handle *qmi, struct qmi_service *svc);
void (*del_server)(struct qmi_handle *qmi, struct qmi_service *svc);
void (*net_reset)(struct qmi_handle *qmi);
void (*msg_handler)(struct qmi_handle *qmi, struct sockaddr_qrtr
*sq, const void *data, size_t count);
void (*bye)(struct qmi_handle *qmi, unsigned int node);
void (*del_client)(struct qmi_handle *qmi, unsigned int node,
unsigned int port);
};
π Members π
bestie, here's the whole roster, no skips, no cuts π
new_serverβ lets the client know about anew_serverlookup-result. and listen β returning successfully from this call is what makes the library calldel_serverwhen the service gets removed from the lookup-result. theprivof theqmi_servicecan be used by the client π«Άdel_serverβ lets the client know about adel_serverlookup-result πnet_resetβ tells the client that the name service was restarted, and that and any state needs to be released π (yes, the "and β¦ and" is in the original, we don't fix, we just vibe)msg_handlerβ invoked for incoming messages, and it lets a client override the usual QMI message handler π₯ lowkey powerfulbyeβ lets a client know that all clients from a node are gone ππdel_clientβ lets a client know that a particular client is gone π
π SEE ALSO π
Kernel file ./include/linux/soc/qcom/qmi.h and its besties: struct qmi_header(9), struct qmi_elem_info(9), struct qmi_response_type_v01(9), struct qmi_service(9), struct qmi_txn(9), struct qmi_msg_handler(9), struct qmi_handle(9) π§β¨
okay that's the whole page, you ate that π and for the cute sign-off: this beauty lives in ./include/linux/soc/qcom and it's dated October 2026 β iconic, timeless, obsessed ππΈ
π¦ 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