qmi_svc_disconnect_cb(9)
πΈ qmi_svc_disconnect_cb(9) πΈ
ok so bestie, welcome to the Kernel API Manual page for qmi_svc_disconnect_cb(9) β yes that's the whole name, yes it's a mouthful, we're doing it anyway π
β¨ NAME β¨
qmi_svc_disconnect_cb β the callback that fires when a QMI client disconnects, i.e. when the qmi client is gone-gone π«Ά
π¦ SYNOPSIS π¦
void qmi_svc_disconnect_cb (struct qmi_handle *handle , unsigned int
node , unsigned int port );
like look at her. void, so she gives nothing back, she just does things β¨
π ARGUMENTS π
handleβ the QMI handle, your main character struct πnodeβ the id of the dying node π (rest in peace king)portβ the port of the dying client, also perishing, also iconic π
π DESCRIPTION π
So this function gets invoked when the remote QMI client is disconnected. That's the whole vibe check.
When it happens, bestie, you gotta handle this event the exact same way as when the QMI bye message is received. no cap, same energy, same handling, do not reinvent it π
Why tho? Because doing it that way ensures the USB offloading path is disabled and cleaned up. that's the whole point. clean up your room before you leave the group chat π§Ήβ¨
fr fr, don't skip the cleanup β that's the entire reason this callback exists π
π SEE ALSO π
Kernel file ./sound/usb/qcom/qc_audio_offload.c plus this whole friend group right here:
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_bye_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)
like, that's the whole squad π«Ά go read them too, iykyk π
k bye bestie, ily, go clean up that USB offloading path π
this lil page comes from ./sound/usb/qcom and it's dated October 2026 β slay, see u then βπ
π¦ 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