drm_gem_lock_reservations(9)
πΈ NAME πΈ
okay so bestie, this is the Kernel API Manual page for drm_gem_lock_reservations(9), and it sets up the ww context and acquires the lock on an array of GEM objects. that's the whole serve, no cap. π
β¨
β¨ SYNOPSIS β¨
int drm_gem_lock_reservations (struct drm_gem_object **objs , int count
, struct ww_acquire_ctx *acquire_ctx );
π ARGUMENTS π
objsβ thedrm_gem_objectsto lock. πcountβ the number of objects inobjs. literally just the count, bestie.acquire_ctxβ astruct ww_acquire_ctxthat will be initialized as part of tracking this set of locked reservations. it's giving lock-tracking main character energy. π¦
π DESCRIPTION π
so once you've locked your reservations, bestie, you'll want to set up space for your shared fences (if applicable), submit your job, and then call drm_gem_unlock_reservations. that's the sequence β slay it in order. β¨π₯
π₯ SEE ALSO π₯
kernel file: ./drivers/gpu/drm/drm_gem.c β that's the source path, periodt. π
these are the SEE ALSO references, preserved exactly:
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_dumb_map_offset(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_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)
xoxo, your kernel bestie π«Ά β footer details preserved: source ./drivers/gpu/drm, version/date October 2026, page drm_gem_lock_reservations(9) ππ
π¦ 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