drm_gem_dumb_map_offset(9)
β¨ drm_gem_dumb_map_offset(9) β¨
okay bestie, welcome to the Kernel API Manual page for drm_gem_dumb_map_offset β yes, the one and only. it's giving kernel-internals realness, and we're gonna get through it together. π
π NAME π
drm_gem_dumb_map_offset β return the fake mmap offset for a gem object. no cap, that's the whole name vibe. π
π SYNOPSIS π
int drm_gem_dumb_map_offset (struct drm_file *file , struct drm_device
*dev , u32 handle , u64 *offset );
π ARGUMENTS π
fileβ the drm file-private structure containing the gem object. like, it's the file's private little gem holder. π«Άdevβ the correspondingdrm_device. the device bae. β¨handleβ the gem object handle. iconic. πoffsetβ return location for the fake mmap offset. yes, fake β that's literally the wording, don't come for me. π
β¨ DESCRIPTION β¨
so this function implements the drm_driver.dumb_map_offset kms driver callback for drivers which use gem to manage their backing storage. that's the whole flex. it's the callback implementation, and the gem-managed-backing-storage drivers are the target audience. π
π«Ά RETURN π«Ά
0 on success or a negative error code on failure. periodt. if it's not 0, it's a negative error code, and that's the whole return story. π
π¦ SEE ALSO π¦
the kernel file is ./drivers/gpu/drm/drm_gem.c, and here's the whole friend group of related pages β all of them, no skipping, bestie:
drm_gem_huge_mnt_create(9)drm_gem_init(9)drm_gem_object_init(9)drm_gem_private_object_init(9)drm_gem_private_object_fini(9)drm_gem_object_handle_get_if_exists_unlocked(9)drm_gem_object_handle_free(9)drm_gem_object_handle_put_unlocked(9)drm_gem_handle_delete(9)drm_gem_handle_create_tail(9)drm_gem_handle_create(9)drm_gem_free_mmap_offset(9)drm_gem_create_mmap_offset_size(9)drm_gem_create_mmap_offset(9)drm_gem_get_pages(9)drm_gem_put_pages(9)drm_gem_objects_lookup(9)drm_gem_object_lookup(9)drm_gem_dma_resv_wait(9)drm_gem_open(9)drm_gem_release(9)drm_gem_object_release(9)drm_gem_object_free(9)drm_gem_vm_open(9)drm_gem_vm_close(9)drm_gem_mmap_obj(9)drm_gem_get_unmapped_area(9)drm_gem_mmap(9)drm_gem_lock_reservations(9)drm_gem_lru_init(9)drm_gem_lru_remove(9)drm_gem_lru_move_tail_locked(9)drm_gem_lru_move_tail(9)drm_gem_lru_scan(9)drm_gem_evict_locked(9)
and that's the page, bestie. this lil sign-off comes from the footer: source/version is ./drivers/gpu/drm, date is October 2026, and the page is drm_gem_dumb_map_offset(9) from the Kernel API Manual. slay, you made it to the end. πβ¨π
π¦ 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