pci_restore_pri_state(9)
π pci_restore_pri_state β the kernel API manual, bestie edition
okay so picture this: we're deep in the kernel API manual and the star of the show is pci_restore_pri_state, which does exactly one thing and does it iconically β it restores PRI. that's it. that's the whole vibe. π
β¨ SYNOPSIS β¨
void pci_restore_pri_state(struct pci_dev *pdev);
no cap, that's the whole signature. returns void, so likeβ¦ it doesn't come back with receipts, it just does the thing. π«Ά
πΈ ARGUMENTS πΈ
pdevβ the PCI device structure π. yes bestie, this is the one you're restoring PRI on. it's astruct pci_dev *, so hand it a pointer and let it cook.
π¦ SEE ALSO π¦
so this little icon lives in the kernel file ./drivers/pci/ats.c β go look, i'll wait π§. and it has so many siblings, ok, a whole friend group of ATS/PRI/PASID functions, literally all of 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_enable_pri(9)pci_disable_pri(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)
like, the whole ats.c squad is here and they all ate π π₯. go read them, iykyk.
lowkey reminder: this page gives you the synopsis, the argument and the see-also fam β nothing more, nothing invented. don't @ me with extra behaviour that isn't on the page π.
and that's a wrap, bestie! π this gorgeous little page comes to you from ./drivers/pci, dated October 2026 β the pci_restore_pri_state(9) manual page, signed off with love and zero typos (hopefully π). now go restore that PRI, main character energy only πβ¨π
π¦ 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