pci_enable_ptm(9)
β¨ 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
- 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