STRUCT DRM_TEGRA_GEM_CREATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– STRUCT DRM_TEGRA_GEM_CREATE πŸ’–

okay so you're looking at the struct drm_tegra_gem_create(9) page from the Kernel API Manual β€” welcome to the Tegra graphics corner of the kernel, bestie, it's cozy here πŸŽ€


✨ NAME ✨

struct drm_tegra_gem_create β€” the parameters for the GEM object creation IOCTL. that's it, that's the whole vibe 🫢


🌸 SYNOPSIS 🌸

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

look at her. three fields. immaculate. 🧚


πŸ‘‘ Members πŸ‘‘

okay so inside the struct we've got three members and honestly each one is kind of a main character:

  • size β€” the size, in bytes, of the buffer object we're about to create. literally just how big the thing is πŸ“
  • flags β€” a bitmask of flags that influence the creation of GEM objects. the baddies in question:
  • DRM_TEGRA_GEM_CREATE_TILED β€” use the 16x16 tiling format for this buffer. that's the 16x16, no cap πŸ”₯
  • DRM_TEGRA_GEM_CREATE_BOTTOM_UP β€” the buffer has a bottom-up layout. yeah she's upside-down-ish, that's the whole point πŸ™ˆ
  • handle β€” the handle of the created GEM object. set by the kernel upon successful completion of the IOCTL. so you don't fill this in yourself, the kernel does it for you when everything goes right β€” she hands it to you πŸ’…
ngl, handle is an out kinda field. don't come in here acting like you set it. πŸ’€

🌈 SEE ALSO 🌈

that's the whole friend group, go say hi to all of them, iykyk πŸ’œ


and that's the page!! sourced from ./include/uapi/drm, dated October 2026, and yes it's struct drm_tegra_gem_create(9) again at the bottom because the man page said so and honestly she ate β­πŸ’– bye bestie, go make some GEM objects πŸ¦‹

πŸ“¦ where this page comes from