pci_enable_pri(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pci_enable_pri β€” the Kernel API Manual glow-up ✨

okay bestie, so this one's called pci_enable_pri(9), straight out of the Kernel API Manual, and it's literally the little function that turns the PRI capability on. short king, but iconic. let's get into it 🫢


🌸 NAME 🌸

pci_enable_pri β€” Enable PRI capability. that's it, that's the whole vibe. no cap.


✨ SYNOPSIS ✨

int pci_enable_pri (struct pci_dev *pdev , u32 reqs );

like, you hand it a device and a request count, and it returns an int. she's simple, she's clean, she's giving minimal effort maximum slay πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • pdev β€” PCI device structure. this is the device you're enabling PRI on, the main character of the operation πŸ‘‘
  • reqs β€” outstanding requests. yeah, that's the count of outstanding requests you're passing in. u32 fr fr.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so, the whole lore: pci_enable_pri enables the PRI capability. that's the function.

Returns 0 on success, and a negative value on error. so like, if you get 0 you're slaying, and if you get negative you're in your flop era and need to check on things 😭. that's literally the entire description and honestly? she said what she said. short and correct, periodt.

ngl there's nothing else in the manpage about behaviour here β€” no extra options, no environment variables, no exit statuses beyond that return value. i'm not gonna invent lore for you bestie, that would be lying and that's not the vibe πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯

this is the bestie list, all the sibling functions living in the kernel file ./drivers/pci/ats.c. go say hi to them:

the whole friend group is here, it's giving group chat energy for real πŸ’–


that's the page bestie, no crumbs left behind πŸ“. this little beauty lives under ./drivers/pci, and the version stamp on it says October 2026 β€” so mark your calendar and stan responsibly. mwah, ily, go enable some PRI πŸ’‹βœ¨πŸŒˆ

πŸ“¦ where this page comes from