STRUCT DRM_ETHOSU_BO_CREATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct drm_ethosu_bo_create(9) ✨

okay bestie, welcome to the struct drm_ethosu_bo_create page from the Kernel API Manual πŸ’… this is literally the struct that describes the arguments passed to DRM_IOCTL_ETHOSU_BO_CREATE β€” like, the little envelope of info you hand over when you want a buffer object created. no cap 🫢


πŸŽ€ NAME πŸŽ€

struct drm_ethosu_bo_create β€” Arguments passed to DRM_IOCTL_ETHOSU_BO_CREATE. that's it, that's the vibe ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

struct drm_ethosu_bo_create {
    __u64 size;
    __u32 flags;
    __u32 handle;
 };

look at her. three little fields, main character energy πŸ‘‘


🌸 Members 🌸

so here's the cast of characters, bestie, one by one πŸ’–

  • size β€” the size you're requesting for the object πŸ“ and heads up, the actual (page-aligned) allocated size for the object will be returned back to you β€” so what you ask for and what you get are lowkey not the same thing, iykyk.
  • flags β€” the flags, obviously πŸ’… must be a combination of drm_ethosu_bo_flags flags. combination, bestie β€” mix and match from that enum, don't invent your own 🧚
  • handle β€” the returned handle for the object πŸŽ€ and the key detail: object handles are nonzero. like, zero is not a handle, periodt. don't be out here checking if (handle == 0) and getting confused πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯

the whole friend group, no one left out 🌈

  • Kernel file ./include/uapi/drm/ethosu_accel.h
  • 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_mmap_offset(9)
  • struct drm_ethosu_job(9)
  • struct drm_ethosu_submit(9)
  • struct drm_ethosu_perfmon_set_global(9)
  • DRM_IOCTL_ETHOSU(9)

ngl this one's short and sweet, so go read the enum drm_ethosu_bo_flags(9) page next if you wanna know which flags you can actually pass πŸ’œ

okay that's the whole page, bestie, you ate that 🫢 this lil number lives in ./include/uapi/drm, dated October 2026, and it's page struct drm_ethosu_bo_create(9) of the Kernel API Manual β€” mwah, see you in the next one πŸ’‹βœ¨

πŸ“¦ where this page comes from