snd_usb_endpoint_stop(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 be NULL πŸ™ˆ (the manpage said it, not me β€” handle it).
  • keep_pending β€” a bool, 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 ⭐

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