DRM_IOCTL_ETHOSU(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 be R, W, or RW β€” like, those are the only three vibes allowed here, don't try anything else πŸ™ˆ
  • __id β€” one of the DRM_ETHOSU_xxx id 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