pci_reset_pri(9)
π pci_reset_pri β a Kernel API Manual moment
okay so bestie, welcome to pci_reset_pri (that's the manual page name, iykyk β section 9, kernel API territory π). she's a tiny function with one job and she does it, periodt.
β¨ NAME β¨
pci_reset_pri β resets the device's PRI state π
πΈ SYNOPSIS πΈ
int pci_reset_pri (struct pci_dev *pdev );
that's it. that's the whole vibe check. one function, one arg, returns an int π
π ARGUMENTS π
pdevβ the PCI device structure π₯οΈ literally the device you're resetting the PRI state on, no cap
π¦ DESCRIPTION π¦
okay so here's the tea π΅ β the PRI capability must be disabled before this function is called. like, fr fr, that's a hard requirement, not a suggestion. do not skip that step bestie, she will not be happy π
Returns 0 on success β¨ and a negative value on error π that's it, that's the whole contract.
π₯ SEE ALSO π₯
the kernel file lives at ./drivers/pci/ats.c β go say hi to her π«Ά and while you're in the neighborhood, here's the whole friendship group:
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_restore_pri_state(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, that's the entire group chat and every single one of them is iconic in her own way π
π‘ friendly reminder from your girl: disable the PRI capability first. that's genuinely the one thing to remember here. no PRI-enabled chaos on my watch π«
okay that's the page!! mwah π this one came from ./drivers/pci, dated October 2026, and she will forever be known as pci_reset_pri(9) πβ go forth and reset those PRI states responsibly, bestie π§π
π¦ 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