DRM_CAP_TIMESTAMP_MONOTONIC(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ DRM_CAP_TIMESTAMP_MONOTONIC ✨

Okay bestie, so this is a page from the Kernel API Manual, and it's about one lil' capability flag called DRM_CAP_TIMESTAMP_MONOTONIC. The original NAME section is literally just the flag name with no description attached β€” iconic minimalist behavior, honestly. πŸ’…


✨ SYNOPSIS ✨

DRM_CAP_TIMESTAMP_MONOTONIC

That's the whole thing. Short and sweet, no arguments, no drama. πŸŽ€


🌸 DESCRIPTION 🌸

So here's the tea, bestie. This capability controls which clock the kernel uses when it stamps timestamps on your events. πŸ”₯

  • If it's set to 0, the kernel will report timestamps with CLOCK_REALTIME in struct drm_event_vblank.
  • If it's set to 1, the kernel will report timestamps with CLOCK_MONOTONIC.

And if you're sitting there like "girl what even are those clocks," don't stress β€” check clock_gettime(2) for the definition of these clocks. iykyk 🫢

Now, the timeline of it all, because history matters:

  • Starting from kernel version 2.6.39, the default value for this capability is 1.
  • Starting kernel version 4.15, this capability is always set to 1.

So yeah, it's basically locked in at 1 now. Main character energy that never leaves. πŸ‘‘


πŸ¦‹ SEE ALSO πŸ¦‹

Okay so this list is LONG and honestly kind of iconic β€” the kernel really said "let me introduce you to everyone." No gatekeeping here, periodt. πŸ’œ

In the kernel file, the page points at:

  • ./tools/perf/trace/beauty/include/uapi/drm/drm.h

Structs and flags:

The ioctls:

And the events:

That's the whole squad. Go read them, they're all slaying in their own way. 🌈


Lowkey a reminder bestie: if you're on a kernel 4.15 or newer, this thing is always 1, so the 0 case is purely a vintage-collector situation. Don't come for me, that's just what the page says. πŸ™ˆ

πŸ’– That's the whole page, fr fr β€” from the Kernel API Manual, sourced from a path starting ./tools/perf/trace/beauty/incl..., dated October 2026, and yes the header and footer both spell out DRM_CAP_TIMESTAMP_MONOTONIC(9) like the little matching bookends they are. Obsessed. πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from