ethosu_gem_cmdstream_create(9)
π ethosu_gem_cmdstream_create β the Kernel API Manual page, but make it make sense π
okay so bestie, welcome to the ethosu_gem_cmdstream_create(9) page from the kernel API manual β¨ this one's short and sweet β she creates a GEM object and then attaches it to a handle, which is giving "make the thing, then give it a name" energy π no cap, that's the whole arc.
πΈ NAME πΈ
ethosu_gem_cmdstream_create β literally: create a GEM object and attach it to a handle π
that's the assignment and she ate.
π¦ SYNOPSIS π¦
int ethosu_gem_cmdstream_create (struct drm_file *file , struct drm_device *ddev , u32 size , u64 data , u32 flags , u32 *handle );
like, six arguments, returns an int, classic kernel function silhouette π we love a consistent signature π«Ά
β¨ ARGUMENTS β¨
okay so let's go through the friend group one by one:
fileβ the DRM file π your ticket to the party.ddevβ the DRM device π₯οΈ the actual hardware vibe.sizeβ size of the GEM object to allocate π how much room we're booking, bestie.dataβ -- undescribed -- π yeah, the docs just... didn't. she's a mystery. iconic of the docs to leave us guessing, but that's literally what the original says so I'm not gonna invent lore π.flagsβ a combination ofdrm_ethosu_bo_flagsflags β mix and match like it's a sticker sheet.handleβ pointer holding the handle that points to the new GEM object π so it's a pointer to the handle β the handle is the output, the pointer is where it lands.
π₯ RETURN π₯
Zero on success β¨ that's it, that's the contract. zero = slay, anything else = check yourself π
π SEE ALSO π
go read these next, bestie, iykyk:
- Kernel file
./drivers/accel/ethosu/ethosu_gem.cπ ethosu_gem_create_object(9)ethosu_gem_create_with_handle(9)
that's the page!! π this little gem lives over in ./drivers/accel/ethosu, stamped October 2026, and it's brought to you by ethosu_gem_cmdstream_create(9) β mwah π go create some objects, bestie, you've got this π§ββοΈπ
π¦ 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