DRM_IOCTL_ETHOSU(9)
π DRM_IOCTL_ETHOSU(9) π
okay bestie, gather round π«Ά this is DRM_IOCTL_ETHOSU(9) from the Kernel API Manual, and she's a tiny one but she's important β she builds the ethosu IOCTL number, which is the little golden ticket userspace hands to the kernel like "hi yes i'd like to talk to the ethosu driver please π
". No cap, that's the whole job.
β¨ SYNOPSIS β¨
DRM_IOCTL_ETHOSU (__access , __id , __type );
three little args, in that order, parentheses and all, periodt πΈ
π ARGUMENTS π
__accessβ the access type, babes. It must beR,W, orRWβ like, those are the only three vibes allowed here, don't try anything else π__idβ one of theDRM_ETHOSU_xxxid values. iykyk π¦__typeβ the suffix of the type being passed to the IOCTL. it's the little name-tag on the end β¨
π DESCRIPTION π
okay so this is the part where i have to be the responsible friend: don't use this macro directly. like, i know it's right there and it's tempting, but no π
ββοΈ you use the DRM_IOCTL_ETHOSU_xxx values instead. those are the main-character values, this macro is just the stage crew. respect the pipeline, bestie π―
fr fr: this is a "look but don't touch" situation β the real usage is the DRM_IOCTL_ETHOSU_xxx constants, not this macro.
π₯ RETURN π₯
it returns an IOCTL number π’ β and that number is exactly what you pass to ioctl from userspace. that's it, that's the whole return value, and honestly? she ate. π
π¦ SEE ALSO π¦
go read these next, they're all linked in the kernel file ./include/uapi/drm/ethosu_accel.h and they're all iconic in their own way π§:
IOCTL IDs(9)IOCTL arguments(9)enum drm_ethosu_dev_query_type(9)struct drm_ethosu_dev_query(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)
and that's the page!! π this little cutie lives in ./include/uapi/drm, version dated October 2026, and that's the whole DRM_IOCTL_ETHOSU(9) moment. go forth and build your IOCTL numbers the correct way, ily, mwah ππβ
π¦ 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