pci_enable_ats(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pci_enable_ats β€” pci_enable_ats(9)

okay so bestie, welcome to the Kernel API Manual ✨ this one's a little function from pci_enable_ats(9) and honestly? it's giving short-and-sweet. let's get into it 🫢


✨ NAME ✨

pci_enable_ats β€” literally just enable the ATS capability πŸ’… no cap, that's the whole job.


πŸ¦‹ SYNOPSIS πŸ¦‹

int pci_enable_ats (struct pci_dev *dev , int ps );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the PCI device. the main character, the one we're doing all this for πŸ‘‘
  • ps β€” the IOMMU page shift. yes, that's the shift. the page shift. keep it exactly as-is 🌸

πŸ’– DESCRIPTION πŸ’–

okay so the vibes here are simple: it returns 0 on success, or negative on failure. that's it. that's the tea πŸ“

ngl, "negative on failure" is the whole entire spec here β€” so like, don't @ me asking for more, it's not in the source 😭

🌈 SEE ALSO 🌈

it lives in the kernel file ./drivers/pci/ats.c, and it's got a whole friend group fr fr β€” here's everyone:


and that's the whole page, bestie 🧚 this lil gem comes to you straight from ./drivers/pci in the Kernel API Manual, dated October 2026 β€” icon behavior, no notes πŸ’œβœ¨

πŸ“¦ where this page comes from