STRUCT DRM_ETHOSU_DEV_QUERY(9)
π 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. checkdrm_ethosu_dev_query_typefor the full menu of options. β¨sizeβ the size of the type being queried. but here's the tea π: ifpointerisNULL, the driver updatessizefor you so you get the output structure size back. ifpointeris notNULL, the driver only copiesmin(size, actual_structure_size)bytes over to the pointer, and updatessizeto 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 beNULL, in which case nothing gets copied at all but the actual structure size still comes back to you. if she's notNULL, she must point to a location that's big enough to holdsizebytes β like, genuinely big enough, don't play with her. β οΈ
okay but fr fr, thatsize/pointerdance 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
- 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