qmi_send_request(9)
π 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 destinationsockaddr. 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 uplenandmsg_id, that's on you, not on me π
π₯ RETURN π₯
0on success β slay, we love a clean win β¨- negative
errnoon 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:
qmi_recv_new_server(9)qmi_recv_del_server(9)qmi_recv_bye(9)qmi_recv_del_client(9)qmi_add_lookup(9)qmi_add_server(9)qmi_txn_init(9)qmi_txn_wait(9)qmi_txn_cancel(9)qmi_invoke_handler(9)qmi_handle_net_reset(9)qmi_handle_init(9)qmi_handle_release(9)qmi_send_message(9)qmi_send_response(9)qmi_send_indication(9)
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
- 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