pci_prepare_ats(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ pci_prepare_ats(9) πŸŽ€

okay bestie, welcome to the Kernel API Manual β€” this one's pci_prepare_ats(9) and it's lowkey a setup queen. she gets the PS ready for ATS, and honestly? she ate.


✨ NAME ✨

pci_prepare_ats β€” Setup the PS for ATS ✨


🌸 SYNOPSIS 🌸

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

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the PCI device, aka the main character of this whole situation πŸ’…
  • ps β€” the IOMMU page shift 🫢

πŸ’– DESCRIPTION πŸ’–

so here's the vibe check: the IOMMU driver has to call this on the PF before any VFs get created. no cap, this is literally mandatory β€” it's what makes sure the VF can have ATS enabled later. skip it and, like, don't. πŸ™ˆ

Returns 0 on success, or negative on failure. that's it, that's the whole return arc.


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/pci/ats.c β€” go read the source, bestie, it's giving iconic:


⭐ sign-off ⭐

this lil beauty lives in ./drivers/pci and the version tag says October 2026 β€” so she's fresh, she's current, she's pci_prepare_ats(9). periodt. πŸ’œπŸ§šβ€β™€οΈπŸŒΈ

πŸ“¦ where this page comes from