USB_DEVICE_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… USB_DEVICE_INFO πŸ’…

okay bestie, this is a kernel API manual page, section 9, and it's all about USB_DEVICE_INFO β€” the macro that's literally the matchmaker for a whole class of USB devices 🩷


✨ NAME ✨

USB_DEVICE_INFO β€” a macro used to describe a class of usb devices. that's it, that's the whole vibe πŸŽ€


🌸 SYNOPSIS 🌸

USB_DEVICE_INFO (cl , sc , pr );

three little args, one big slay ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • cl β€” the bDeviceClass value. yes, exactly that field name, don't come for me πŸ’…
  • sc β€” the bDeviceSubClass value. the subclass, the understudy, the supporting character 😌
  • pr β€” the bDeviceProtocol value. the protocol, obviously. main character protocol energy πŸ”₯

πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the tea πŸ“ β€” this macro builds you a struct usb_device_id that matches one specific class of devices. like, a whole category. not one single vendor/product combo, a class. that's the entire job and it does it gorgeously, no cap πŸ’œ


🌈 SEE ALSO 🌈

bestie the cross-reference list is long and honestly kind of iconic, buckle up 🧚

like I said. a list. go read them, they're all right there in the kernel docs, iykyk πŸ“šβœ¨


reminder bestie: every name above is a literal man page reference β€” no paraphrasing, no skipping. the kernel does not do "tl;dr" πŸ’€

okay that's the whole page, mwah πŸ’‹ this one came from ./include/linux and it's dated October 2026 β€” go forth and match some USB classes, you absolute icon πŸ«ΆπŸ’–β­

πŸ“¦ where this page comes from