snd_usb_endpoint_stop(9)
β¨ snd_usb_endpoint_stop(9) β¨
okay bestie, welcome to the Kernel API Manual π this one's a little function called snd_usb_endpoint_stop and it lives in section 9, and honestly? she's giving cleanup crew main character energy. let's get into it π
πΈ NAME πΈ
snd_usb_endpoint_stop β stop an snd_usb_endpoint π
literally what it says on the tin, no cap.
π¦ SYNOPSIS π¦
void snd_usb_endpoint_stop (struct snd_usb_endpoint *ep , bool
keep_pending );
that's the whole vibe β void return, so she's not giving you anything back, she's just doing the thing β¨
π ARGUMENTS π
epβ the endpoint to stop. and yes bestie she may beNULLπ (the manpage said it, not me β handle it).keep_pendingβ abool, and it means keep in-flight URBs π«Ά like, don't nuke the ones already airborne.
π₯ DESCRIPTION π₯
so here's the tea β β when you call this function, it will decrement the running count of the endpoint. lowkey a refcount moment, iykyk.
and if the last user has requested the endpoint stop? that's when the URBs will actually be deactivated. the way that she waits until everybody's out of the group chat before turning off the lights ππ
β οΈ ok important: this must be balanced to calls of snd_usb_endpoint_start. don't be out here calling stop without a matching start, fr fr.
β οΈ also important: the caller needs to synchronize the pending stop operation via snd_usb_endpoint_sync_pending_stop. that's your job, not hers. no cap. π«‘
β SEE ALSO β
- Kernel file
./sound/usb/endpoint.cβ go read the source bestie, it's iconic π§ snd_usb_endpoint_implicit_feedback_sink(9)snd_usb_add_endpoint(9)snd_usb_endpoint_start(9)snd_usb_endpoint_release(9)snd_usb_endpoint_free_all(9)
all the siblings in the family π go say hi.
and that's the whole page, bestie π shoutout to ./sound/usb for hosting her and to October 2026 for the timestamp β snd_usb_endpoint_stop(9) out here slaying since day one ππ slay, periodt. πΈ
π¦ 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