qmi_txn_wait(9)
π qmi_txn_wait(9) β bestie's guide to waiting on a QMI transaction π
okay so this is a page from the Kernel API Manual, section 9, and it's literally called qmi_txn_wait β the wait-for-a-response-on-a-transaction girlie. no cap, it's a short one, so let's go β¨
πΈ NAME πΈ
qmi_txn_wait β wait for a response on a transaction. that's it, that's the whole vibe. she waits. π
π¦ SYNOPSIS π¦
int qmi_txn_wait (struct qmi_txn *txn , unsigned long timeout );
like, you hand her a transaction handle and a timeout, and she returns an int. the way that signature just sits there. iconic.
β¨ ARGUMENTS β¨
txnβ transaction handle. your little ticket stub for the transaction, bestie π«timeoutβ the timeout, measured in jiffies. yes, jiffies. not milliseconds, not seconds, jiffies. iykyk π
π DESCRIPTION π
so here's the tea π΅ β if the transaction gets decoded by the means of ei and c_struct, the return value will be the returned value of qmi_decode_message. that's the whole bit. it just hands you back what that gave you.
but if that's not the case? then it's highkey up to the specified message handler to fill out the result. no handler doing its job, no result. so like, don't come for her if the handler ghosted β that's not her department π
π RETURN π
- the transaction response on success π
- a negative errno on failure π
that's the whole deal. positive-ish vibes = response, negative numbers = something went wrong, go check your errno.
π₯ SEE ALSO π₯
the kernel file lives at ./drivers/soc/qcom/qmi_interface.c, and honestly the whole friend group is here:
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_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_request(9)qmi_send_response(9)qmi_send_indication(9)
all of them. every single one. i don't skip the boring parts, bestie, that's not the vibe π
β friendly reminder: timeout is in jiffies, not real-people time. if you're confused why nothing makes sense, check your units. fr fr.
okay and last thing β the cute lil sign-off π«Ά this page comes from ./drivers/soc/qcom and it's dated October 2026, and it's qmi_txn_wait(9) in the Kernel API Manual. stan. πβ¨πΈ
π¦ 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