STRUCT DRM_TEGRA_GEM_CREATE(9)
π 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 π
- Kernel file
./include/uapi/drm/tegra_drm.h struct drm_tegra_gem_mmap(9)struct drm_tegra_syncpt_read(9)struct drm_tegra_syncpt_incr(9)struct drm_tegra_syncpt_wait(9)struct drm_tegra_open_channel(9)struct drm_tegra_close_channel(9)struct drm_tegra_get_syncpt(9)struct drm_tegra_get_syncpt_base(9)struct drm_tegra_syncpt(9)struct drm_tegra_cmdbuf(9)struct drm_tegra_reloc(9)struct drm_tegra_waitchk(9)struct drm_tegra_submit(9)struct drm_tegra_gem_set_tiling(9)struct drm_tegra_gem_get_tiling(9)struct drm_tegra_gem_set_flags(9)struct drm_tegra_gem_get_flags(9)DRM_TEGRA_SUBMIT_RELOC_SECTOR_LAYOUT(9)DRM_TEGRA_SUBMIT_CMD_GATHER_UPTR(9)DRM_TEGRA_SUBMIT_CMD_WAIT_SYNCPT(9)DRM_TEGRA_SUBMIT_CMD_WAIT_SYNCPT_RELATIVE(9)
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
- 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