PCI_DEVICE_DRIVER_OVERRIDE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… PCI_DEVICE_DRIVER_OVERRIDE(9) β€” like, the Kernel API Manual one, bestie

okay so real talk, this is a macro from the kernel API docs and it's genuinely so niche but honestly kind of iconic once you get it. it lives in that manual, you know the one. let's go 🫢


✨ NAME ✨

PCI_DEVICE_DRIVER_OVERRIDE β€” a macro you use to describe a PCI device when it's got override_only flags. that's the whole vibe. πŸŽ€


🌸 SYNOPSIS 🌸

PCI_DEVICE_DRIVER_OVERRIDE (vend , dev , driver_override );

no cap, that's the whole call. three args, in that order, with the commas exactly where they are. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • vend β€” the 16 bit PCI Vendor ID. yes, 16 bit. don't come at it with anything bigger, she's precise. πŸ’–
  • dev β€” the 16 bit PCI Device ID. also 16 bit. matching energy, we love to see it. ✨
  • driver_override β€” the 32 bit PCI Device override_only. that's 32 bit, bestie, she's the bigger one of the group. πŸ‘‘

πŸ”₯ DESCRIPTION πŸ”₯

so what does this macro actually do? it creates a struct pci_device_id that matches only a driver_override device. that's literally it, that's the assignment. 🎯

and the subvendor and subdevice fields? they get set to PCI_ANY_ID. so they're basically like "idk, anyone, i'm not picky" β€” which highkey makes sense because the matching happens off the driver_override, not them. πŸ’€

lowkey important: because those two fields are PCI_ANY_ID, this isn't a "match this specific sub-device" macro. it's the driver_override-only case, and that's the whole point. don't try to make it something it isn't. πŸ™ˆ

🌈 SEE ALSO 🌈

bestie, buckle up, because there is a lot here. the kernel file is ./include/linux/pci.h, and then there's this whole crew of related pages, all section (9):

like i said. a lot. all of them linked, none of them skipped, we do not gatekeep here. πŸ§šπŸ’œ


ngl if you got this far you're officially a PCI macro girlie now. main character energy fr fr. πŸ‘‘

okay bye ily, this page is from ./include/linux, dated October 2026, and yes the header up top and this footer right here both say PCI_DEVICE_DRIVER_OVERRIDE(9) because that's just how manpages do. slay. πŸ“β­πŸŽ€

πŸ“¦ where this page comes from