drm_gem_lru_..._tail_locked(9)
π drm_gem_lru_move_tail_locked β Kernel API Manual β¨
okay bestie, gather round, because today we're talking about drm_gem_lru_move_tail_locked(9) from the Kernel API Manual, and honestly? she's short, she's sweet, she's locked. let's get into it π«Ά
πΈ NAME πΈ
drm_gem_lru_move_tail_locked β move the object to the tail of the LRU π
like, literally that's her whole job. no cap.
β¨ SYNOPSIS β¨
void drm_gem_lru_move_tail_locked (struct drm_gem_lru *lru , struct
drm_gem_object *obj );
she's a void function, so don't go looking for a return value, bestie β there isn't one π
π¦ ARGUMENTS π¦
lruβ The LRU to move the object into. this is the queue she's sliding into, periodt πobjβ The GEM object to move into this LRU. the actual star of the show, the main character π
π DESCRIPTION π
okay so here's the vibe: this is like drm_gem_lru_move_tail β same energy, same tail-moving situation β but the lru lock must be held π
that's it. that's the whole twist. the _locked in the name is not decorative, bestie, it's a whole warning label. hold the lock, or it's giving undefined behaviour π
π SEE ALSO π
the whole friend group, no gatekeeping:
Kernel file ./drivers/gpu/drm/drm_gem.c
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_lock_reservations(9)drm_gem_lru_init(9)drm_gem_lru_remove(9)drm_gem_lru_move_tail(9)drm_gem_lru_scan(9)drm_gem_evict_locked(9)
π§ quick reminder before you go:_lockedmeans thelrulock is already held. do not come for me if you skip that part, i warned you π
and that's the whole page, bestie πΈ this cutie lives at ./drivers/gpu/drm, dated October 2026, and she's filed under drm_gem_lru_..._tail_locked(9) β mwah, slay, periodt π
π
π¦ 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