pci_enable_pri(9)
π 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.u32fr 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:
pci_ats_supported(9)pci_prepare_ats(9)pci_enable_ats(9)pci_disable_ats(9)pci_ats_queue_depth(9)pci_ats_page_aligned(9)pci_ats_required(9)pci_disable_pri(9)pci_restore_pri_state(9)pci_reset_pri(9)pci_prg_resp_pasid_required(9)pci_pri_supported(9)pci_enable_pasid(9)pci_disable_pasid(9)pci_restore_pasid_state(9)pci_pasid_features(9)pci_max_pasids(9)pci_pasid_status(9)
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
- 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