STRUCT DRM_V3D_COPY_TIMESTAMP_QUERY(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct drm_v3d_copy_timestamp_query πŸ’…

okay so bestie, welcome to the struct drm_...estamp_query(9) page, straight out of the Kernel API Manual ✨ this one's a struct, it lives in the kernel API docs, and it's genuinely not scary, i promise 🫢


🌸 NAME 🌸

struct drm_v3d_copy_timestamp_query β€” it's the ioctl extension that lets the CPU job copy query results over to a buffer πŸ’– no cap, that's the whole vibe of this thing.


✨ SYNOPSIS ✨

here's the shape of it, copy-pasted with love and zero typos:

struct drm_v3d_copy_timestamp_query {
    struct drm_v3d_extension base;
    __u8 do_64bit;
    __u8 do_partial;
    __u8 availability_bit;
    __u8 pad;
    __u32 offset;
    __u32 stride;
    __u32 count;
    __u64 offsets;
    __u64 syncs;
 };

like, look at her. all those little fields lined up. main character energy fr 🌈


πŸŽ€ Members πŸŽ€

okay the original page just says Members and then immediately moves on, so there's no per-member commentary to give you here πŸ™ˆ the field list is up there in the synopsis, and that's the canon version β€” base, do_64bit, do_partial, availability_bit, pad, offset, stride, count, offsets, syncs, each with the exact type shown above. that's it, that's the section πŸ’€


πŸ¦‹ Description πŸ¦‹

so here's the tea β˜• when an extension with DRM_V3D_EXT_ID_CPU_COPY_TIMESTAMP_QUERY is defined, it points to this extension to define a copy timestamp query submission. like, that's its whole job, and it does it slayfully.

and then β€” this is the good part β€” this CPU job copies the timestamp queries results to a BO, using the offset and stride that you defined in the extension. literally. iconic. that's the behaviour, no notes ✨


πŸ‘‘ SEE ALSO πŸ‘‘

go read these next bestie, they're all in the Kernel file ./include/uapi/drm/v3d_drm.h and they all ate πŸ’…

  • struct drm_v3d_multi_sync(9)
  • struct drm_v3d_submit_cl(9)
  • struct drm_v3d_wait_bo(9)
  • struct drm_v3d_create_bo(9)
  • struct drm_v3d_mmap_bo(9)
  • struct drm_v3d_indirect_csd(9)
  • struct drm_v3d_timestamp_query(9)
  • struct drm_v3d_reset_timestamp_query(9)
  • struct drm_v3d_reset_performance_query(9)
  • struct drm_v3d_copy_performance_query(9)
  • struct drm_v3d_perfmon_get_counter(9)
  • struct drm_v3d_perfmon_set_global(9)

ngl, reading kernel headers is a whole skill and you're doing amazing 🫢 iykyk.

alright bestie, that's the page πŸ’– it came from source ./include/uapi/drm, dated October 2026, and it's titled struct drm_...estamp_query(9) up top and down at the bottom too. mwah, go forth and copy those timestamp queries πŸŽ€β­πŸ’œ

πŸ“¦ where this page comes from