drm_gem_shmem_init(9)
π drm_gem_shmem_init(9) π
okay so bestie, welcome to the Kernel API Manual β¨ this little page is all about drm_gem_shmem_init(9) β yes, the very function in the title, we're doing it, we're learning DRM shmem internals together π
π NAME π
drm_gem_shmem_init β literally just initializes an allocated object, that's the whole vibe π«Ά
β¨ SYNOPSIS β¨
int drm_gem_shmem_init (struct drm_device *dev , struct
drm_gem_shmem_object *shmem , size_t size );
πΈ ARGUMENTS πΈ
devβ the DRM device, aka the main character in this situation πshmemβ the shmem GEM object you're about to initialize, she's allocated but not yet initialized, know the difference π¦sizeβ buffer size in bytes, count carefully bestie, units matter π
π§ DESCRIPTION π§
so this function initializes an allocated shmem GEM object. that's it. that's the whole description. no cap, sometimes the docs are refreshingly short and we respect the brevity π
β RETURN β
0on success π slay- a negative error code on failure π not slay, but at least it tells you
π SEE ALSO π
like, go read these too, iykyk π
- Kernel file
./drivers/gpu/drm/drm_gem_shmem_helper.coverview(9) drm_gem_shmem_create(9)drm_gem_shmem_release(9)drm_gem_shmem_free(9)drm_gem_shmem_pin(9)drm_gem_shmem_unpin(9)drm_gem_shmem_create_with_handle(9)drm_gem_shmem_dumb_create(9)drm_gem_shmem_mmap(9)drm_gem_shmem_print_info(9)drm_gem_shmem_get_sg_table(9)drm_gem_shmem_get_pages_sgt(9)drm_gem_shmem_prime_import_sg_table(9)drm_gem_shmem_prime_import_no_map(9)
fr fr, that's the whole page β go forth and initialize responsibly π
and that's a wrap, bestie!! this little gem lives over in ./drivers/gpu/drm and the page is dated October 2026 π mwah, see you in the next manpage ππ
π¦ 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