xe_bo_vma_count_dec_locked(9)
β¨ xe_bo_vma_count_dec_locked β¨
okay so bestie, welcome to the Kernel API Manual π this one's a lil function page and it's literally so simple you're gonna slay it. it's giving "one job, does it well" energy, no cap.
πΈ NAME πΈ
xe_bo_vma_count_dec_locked β account a VMA removal on a BO π
like, it's the little bookkeeper that keeps track of VMAs leaving the party. lowkey iconic.
π¦ SYNOPSIS π¦
void xe_bo_vma_count_dec_locked (struct xe_bo *bo );
that's it. that's the whole signature. short and sweet, fr fr. β¨
π ARGUMENTS π
boβ buffer object π«Ά (yes, that's the whole description, and honestly? valid. it's the BO. the one and only. main character energy.)
π DESCRIPTION π
so what does it actually do? it decrements vma_count. one VMA removed, one less on the counter. girl math but make it kernel. π
β οΈ important caveat bestie, do NOT skip this one: the caller must hold the BO's dma-resv lock. like, that's not optional, that's not a vibe suggestion, that's the rule. if you're calling this without the lock held you're not slaying, you're just asking for trouble. π
π SEE ALSO π
the whole friend group, in order, exactly as listed:
- Kernel file
./drivers/gpu/drm/xe/xe_bo.henum xe_madv_purgeable_state(9)xe_bo_is_purged(9)xe_bo_madv_is_dontneed(9)xe_bo_willneed_get_locked(9)xe_bo_willneed_put_locked(9)xe_bo_vma_count_inc_locked(9)β the literal opposite of this function, the evil twin, the inc to this dec πxe_bo_size(9)xe_bo_has_valid_ccs_bb(9)xe_bo_put_deferred(9)xe_bo_put_async(9)xe_bo_sg_is_contiguous(9)- struct
xe_bo_shrink_flags(9) xe_bo_is_mem_type(9)
iykyk π
and that's the whole page, bestie!! go forth and decrement responsibly π§
this lil gem lives in ./drivers/gpu/drm/xe and it was dated October 2026 β mwah, ty for reading, ily, bye!! ππ
π¦ 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