USB_DEVICE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… USB_DEVICE(9) β€” like, the kernel API manual page, bestie

okay so real quick, the vibe check: this is USB_DEVICE(9) from the Kernel API Manual β€” yes, that Kernel API Manual, the one your kernel-dev crush keeps open in another tab 🫢


✨ NAME ✨

USB_DEVICE β€” the macro you use to describe one specific usb device πŸ’–

✨ SYNOPSIS ✨

USB_DEVICE (vend , prod );

✨ ARGUMENTS ✨

  • vend β€” the 16 bit USB Vendor ID 🌸
  • prod β€” the 16 bit USB Product ID πŸŽ€

✨ DESCRIPTION ✨

So here's the whole thing, no cap: this macro creates a struct usb_device_id that matches one specific device. That's it. That's the whole personality ✨

Like, it's giving "tiny macro, huge responsibility" β€” iconic behavior honestly πŸ‘‘

✨ SEE ALSO ✨

go read these next, bestie, I promise they're worth it πŸ”₯


okay that's the whole page, mwah πŸ’‹ it lives in ./include/linux, it's dated October 2026, and it's from the Kernel API Manual β€” so if you ever forget where you found it, you know exactly where to look πŸ¦‹ go forth and match some devices, bestie, periodt πŸ’œ

πŸ“¦ where this page comes from