STRUCT DRM_ETHOSU_DEV_QUERY(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct drm_ethosu_dev_query(9)

okay so bestie, welcome to the struct drm_ethosu_dev_query page from the Kernel API Manual β€” yes it's a whole manpage about one lil struct, and honestly? she's kind of iconic for it. πŸŽ€

✨ NAME ✨

struct drm_ethosu_dev_query β€” the arguments that get passed to DRM_ETHOSU_IOCTL_DEV_QUERY. that's it, that's the vibe. πŸ’–

🌸 SYNOPSIS 🌸

struct drm_ethosu_dev_query {
    __u32 type;
    __u32 size;
    __u64 pointer;
 };

(no cap, that trailing space before the closing brace is in the original and I am not touching it, we respect the source here 🫢)

πŸ¦‹ Members πŸ¦‹

  • type β€” the query type, iykyk. check drm_ethosu_dev_query_type for the full menu of options. ✨
  • size β€” the size of the type being queried. but here's the tea πŸ‘€: if pointer is NULL, the driver updates size for you so you get the output structure size back. if pointer is not NULL, the driver only copies min(size, actual_structure_size) bytes over to the pointer, and updates size to match. the whole reason this exists is so we can extend query types later without breaking userspace. slay, forward compatibility, we love to see it. πŸ’…
  • pointer β€” a user pointer to a query type struct. she can be NULL, in which case nothing gets copied at all but the actual structure size still comes back to you. if she's not NULL, she must point to a location that's big enough to hold size bytes β€” like, genuinely big enough, don't play with her. ⚠️
okay but fr fr, that size / pointer dance is the main character energy of this whole struct β€” read it twice before you ship. πŸ’€

🌈 SEE ALSO 🌈

  • Kernel file ./include/uapi/drm/ethosu_accel.h
  • IOCTL IDs(9)
  • IOCTL arguments(9)
  • enum drm_ethosu_dev_query_type(9)
  • enum drm_ethosu_bo_flags(9)
  • struct drm_ethosu_bo_create(9)
  • struct drm_ethosu_bo_mmap_offset(9)
  • struct drm_ethosu_job(9)
  • struct drm_ethosu_submit(9)
  • struct drm_ethosu_perfmon_set_global(9)
  • DRM_IOCTL_ETHOSU(9)

and that's the page bestie!! 🧚 mwah πŸ’‹ this one lives in ./include/uapi/drm, dated October 2026, and it's struct drm_ethosu_dev_query(9) all the way down. go read your ioctls, ily, bye πŸ“βœ¨

πŸ“¦ where this page comes from