USB_DEVICE_INFO(9)
π 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β thebDeviceClassvalue. yes, exactly that field name, don't come for me πscβ thebDeviceSubClassvalue. the subclass, the understudy, the supporting character πprβ thebDeviceProtocolvalue. 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 π§
- Kernel file
./include/linux/usb.hβ that's where the good stuff lives struct usb_host_endpoint(9)struct usb_interface(9)usb_set_intfdata(9)struct usb_interface_cache(9)struct usb_host_config(9)struct usb_device(9)usb_hub_for_each_child(9)usb_interface_claimed(9)usb_make_path(9)USB_DEVICE(9)USB_DEVICE_VER(9)USB_DEVICE_INTERFACE_CLASS(9)USB_DEVICE_INTERFACE_PROTOCOL(9)USB_DEVICE_INTERFACE_NUMBER(9)USB_INTERFACE_INFO(9)USB_DEVICE_AND_INTERFACE_INFO(9)USB_VENDOR_AND_INTERFACE_INFO(9)struct usb_driver(9)struct usb_device_driver(9)struct usb_class_driver(9)module_usb_driver(9)struct urb(9)usb_fill_control_urb(9)usb_fill_bulk_urb(9)usb_fill_int_urb(9)usb_urb_dir_in(9)usb_urb_dir_out(9)struct usb_sg_request(9)
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
- 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