usb_interface_claimed(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… usb_interface_claimed(9) β€” a.k.a. the "is this interface taken?" check

okay so bestie, welcome to the Kernel API Manual page for usb_interface_claimed β€” yes it's a mouthful, yes it's iconic, and yes we're gonna get through it together 🫢


✨ NAME ✨

usb_interface_claimed β€” literally returns true iff an interface is claimed. that's it. that's the whole vibe check πŸ’…


✨ SYNOPSIS ✨

int usb_interface_claimed (struct usb_interface *iface );

like, one function, one argument, zero drama πŸŽ€


✨ ARGUMENTS ✨

  • iface β€” the interface being checked, aka the main character of this whole operation πŸ‘‘

✨ RETURN ✨

here's the tea πŸ“: it returns true (nonzero) iff the interface is claimed, and false (zero) otherwise. no in-between, no "it's complicated", just yes or no. slay.


✨ NOTE ✨ 🌸

okay this part is important, pay attention bestie 😭

Callers must own the driver model's usb bus readlock. So the good news: driver probe entries don't need extra locking (they're already covered, no cap). The "well actually" news: other call contexts may need to explicitly claim that lock. fr fr, don't skip this one πŸ™ˆ


✨ SEE ALSO ✨ πŸ¦‹

like, an entire friend group of cross-references, we love to see it 🌈


and that's the page!! πŸ’– this lil beauty lives in ./include/linux and the version/date on it is October 2026 β€” so mark your calendars, bestie πŸŽ€βœ¨πŸ‘‘

πŸ“¦ where this page comes from