pci_enable_ptm(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

pci_enable_ptm β€” bestie, this is the one that enables Precision Time Measurement πŸ‘‘ (yes, the manual name is Kernel API Manual, and the page itself is pci_enable_ptm(9) β€” iconic).

πŸŽ€ SYNOPSIS πŸŽ€

int pci_enable_ptm (struct pci_dev *dev );

🌸 ARGUMENTS 🌸

  • dev β€” a PCI device. That's the whole vibe check for this one 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so this function enables Precision Time Measurement for dev. Literally that's the mission, and it ate πŸ’…βœ¨

πŸ’– RETURN πŸ’–

It returns zero if successful. But if dev lacks a PTM Capability, or if it is not a PTM Root and lacks an upstream path of PTM-enabled devices, you get -EINVAL instead 😭 β€” so like, check your setup before you come for this function, fr fr.

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/pci/pcie/ptm.c
  • pci_disable_ptm(9) β€” the opposite-energy bestie, iykyk 🧚

Sign-off time, besties: this page comes from ./drivers/pci/pcie, dated October 2026, and it is giving Kernel API Manual realness. Slay, stay hydrated, and may all your PTM paths be enabled πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from