pci_max_pasids(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ pci_max_pasids ✨

okay so bestie, welcome to the pci_max_pasids(9) page from the Kernel API Manual πŸ’… this one is short and sweet and honestly kind of iconic for it.


🌸 NAME 🌸

pci_max_pasids β€” literally just: get the maximum number of PASIDs supported by a device. that's the whole vibe πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int pci_max_pasids (struct pci_dev *pdev );

like, one function, one struct pointer, no drama. periodt.


πŸ’– ARGUMENTS πŸ’–

  • pdev β€” the PCI device structure 🫢 that's your device, bestie, the one you're asking about.

πŸ”₯ DESCRIPTION πŸ”₯

okay so here's the tea β˜• β€” if the PASID capability is not present, this returns a negative value. no capability, no PASIDs, sorry babe 😭

otherwise? it returns the number of supported PASIDs ✨ like, the actual count. that's it, that's the function, she's lowkey simple and we love her for it.


πŸ‘‘ SEE ALSO πŸ‘‘

bestie there are SO many siblings in this family, brace yourself πŸ’€ the kernel file lives at ./drivers/pci/ats.c and here's the whole crew:

ngl that's a whole group chat right there 🌈 go read them too, iykyk πŸ’œ


and that's the page!! brought to you from ./drivers/pci 🧚 dated October 2026, version vibes included, mwah πŸ’‹β­

πŸ“¦ where this page comes from