xe_bo_is_purged(9)
π xe_bo_is_purged β check if a buffer object has been purged β¨
okay so this one is from the Kernel API Manual (kernel docs, we love her), and it's about asking one very important question: has this buffer object been purged? π«Ά
πΈ NAME πΈ
xe_bo_is_purged β check if a buffer object has been purged π
β¨ SYNOPSIS β¨
bool xe_bo_is_purged (struct xe_bo *bo );
π ARGUMENTS π
boβ the buffer object you're checking, bestie. that's the one.
π¦ DESCRIPTION π¦
so this function checks whether the buffer object's backing store has been discarded by the kernel because of memory pressure β and this only happens after the BO was marked as purgeable (DONTNEED). π
β οΈ once it's purged, the BO cannot be restored, and any attempt to use it will fail. no cap, it's gone gone. π
π CONTEXT π
the caller must hold the BO's dma-resv lock. like, that's not optional, that's the vibe check. π
β RETURN β
trueif the BO has been purged πfalseotherwise π
π₯ SEE ALSO π₯
Kernel file ./drivers/gpu/drm/xe/xe_bo.h enum
xe_madv_purgeable_state(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)xe_bo_vma_count_dec_locked(9)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)
that's the whole page, icon, go check your BOs π§π
this lil gem lives at ./drivers/gpu/drm/xe, dated October 2026 β shoutout to the kernel api manual for keeping it cute β¨π
π¦ 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