qmi_bye_cb(9)
π qmi_bye_cb(9) β like, the kernel API manual, but make it make sense β¨
okay bestie, so this is a page from the Kernel API Manual, and today's main character is qmi_bye_cb β the qmi bye message callback. yes it's as iconic as it sounds. let's get into it π«Ά
πΈ NAME πΈ
qmi_bye_cb β the qmi bye message callback π
π SYNOPSIS π
void qmi_bye_cb (struct qmi_handle *handle , unsigned int node );
that's it. that's the whole signature. no cap. β¨
π¦ ARGUMENTS π¦
handleβ the QMI handle, aka the whole vibe of the QMI thing you're working with π₯nodeβ the id of the dying node π like, it's literally on its way out, show some respect
β DESCRIPTION β
so here's the tea π: this callback fires when the QMI bye control message gets received from the QMI client. someone's saying bye, and it's your job to handle it accordingly β no ghosting allowed π
how do you handle it? by making sure the USB offload path is disabled and cleaned up. that's the whole assignment. do it, slay it, move on. π
and like, important context: at this point, ADSP is not utilizing the USB bus. so yeah, that's where we're at. iykyk π
π§ SEE ALSO π§
the whole friend group, fr fr β check these out when you're done here:
- the kernel file
./sound/usb/qcom/qc_audio_offload.c(yes, the actual file, go look at it β¨) uaudio_iommu_unmap(9)uaudio_iommu_map_pa(9)uaudio_dev_intf_cleanup(9)uaudio_event_ring_cleanup_free(9)disable_audio_stream(9)uaudio_sideband_notifier(9)qmi_svc_disconnect_cb(9)enable_audio_stream(9)uaudio_transfer_buffer_setup(9)uaudio_endpoint_setup(9)uaudio_event_ring_setup(9)uaudio_populate_uac_desc(9)prepare_qmi_response(9)handle_uaudio_stream_req(9)qc_usb_audio_offload_init_qmi_dev(9)qc_usb_audio_offload_probe(9)qc_usb_audio_cleanup_qmi_dev(9)qc_usb_audio_offload_disconnect(9)qc_usb_audio_offload_suspend(9)
that's a lot of links but honestly? iconic of them. read them all, bestie, i believe in you π«Άπ
π‘ little reminder: this lives in ./sound/usb/qcom β that's the home base for all this audio offload drama π§
and that's the page!! mwah π this cutie came from ./sound/usb/qcom, dated October 2026, and it's literally qmi_bye_cb(9) β okay bye bestie, go clean up that offload path ππβ¨
π¦ 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