qmi_send_request(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’Œ qmi_send_request β€” no cap, it's a whole kernel-API-manual moment (section 9, bestie) ✨

okay so real talk: this is a page straight out of the Kernel API Manual, section 9, and it's about one (1) little function that does a very big job. Buckle up πŸŽ€


🌸 NAME 🌸

qmi_send_request β€” literally just sends a request QMI message. that's the whole vibe. it sends. it's a request. it's QMI. periodt πŸ’…


✨ SYNOPSIS ✨

ssize_t qmi_send_request (struct qmi_handle *qmi , struct sockaddr_qrtr *sq , struct qmi_txn *txn , int msg_id , size_t len , const struct qmi_elem_info *ei , const void *c_struct );

look at all those parameters. seven of them. she's thorough πŸ’–


🫢 ARGUMENTS 🫢

bestie, every single one matters, so pay attention:

  • qmi β€” the QMI client handle. this is the main character, the one who actually owns the conversation πŸ‘‘
  • sq β€” the destination sockaddr. it's where the message is headed, iykyk πŸ“¬
  • txn β€” the transaction object you're using for this message. she keeps track of stuff so you don't have to πŸ’…
  • msg_id β€” the message id. it's giving "which message is this" energy 🏷️
  • len β€” the max length of the QMI message. the literal ceiling, fr fr πŸ“
  • ei β€” the QMI message description. it's the blueprint, the lore, the whole structure 🌈
  • c_struct β€” the object to be encoded. this is the actual thing getting packed up and shipped out πŸ“¦
ngl, if you mix up len and msg_id, that's on you, not on me πŸ™ˆ

πŸ”₯ RETURN πŸ”₯

  • 0 on success β€” slay, we love a clean win ✨
  • negative errno on failure β€” not the vibe, but at least she tells you 😭

πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file lives at ./drivers/soc/qcom/qmi_interface.c, and here's the whole friend group it runs with:

that's SIXTEEN cross-references and every single one is iconic, no skips πŸ’œ


and that's the page!! go forth and send your request messages responsibly, bestie πŸ§šβ€β™€οΈ

source spot: ./drivers/soc/qcom Β· dated October 2026 Β· kernel API manual section 9 πŸŽ€ β€” ok bye, love u, read the docs πŸ’–

πŸ“¦ where this page comes from