STRUCT QMI_OPS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 a new_server lookup-result. and listen β€” returning successfully from this call is what makes the library call del_server when the service gets removed from the lookup-result. the priv of the qmi_service can be used by the client 🫢
  • del_server β€” lets the client know about a del_server lookup-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 powerful
  • bye β€” 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