USB_DEVICE_VER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… USB_DEVICE_VER(9) πŸ’…

okay so we're in the Kernel API Manual today bestie, and this page is all about one lil macro that describes a specific USB device β€” but with a version range πŸ‘€βœ¨


✨ NAME ✨

USB_DEVICE_VER β€” describe a specific usb device with a version range πŸŽ€


🌸 SYNOPSIS 🌸

USB_DEVICE_VER (vend , prod , lo , hi );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • vend β€” the 16 bit USB Vendor ID πŸ’–
  • prod β€” the 16 bit USB Product ID 🫢
  • lo β€” the bcdDevice_lo value
  • hi β€” the bcdDevice_hi value

πŸ‘‘ DESCRIPTION πŸ‘‘

This macro is used to create a struct usb_device_id that matches a specific device, with a version range. literally that's the whole vibe β€” you give it a vendor, a product, and a lo/hi version window, and it builds you the matching id struct. no cap. πŸ”₯


🌈 SEE ALSO 🌈

Kernel file ./include/linux/usb.h β€” and here's the whole friend group, no one left out fr fr:


and that's the whole page bestie, go forth and match some devices πŸ§šπŸ’œ

sign-off time: this cutie lives in ./include/linux, dated October 2026, and it's USB_DEVICE_VER(9) β€” periodt πŸ’…β­

πŸ“¦ where this page comes from