xe_bo_madv_is_dontneed(9)
π xe_bo_madv_is_dontneed π
okay so bestie, welcome to the Kernel API Manual β this one's a little function from the xe driver and it's honestly so straightforward, you're gonna eat it up β¨
π NAME π
xe_bo_madv_is_dontneed β check if a BO is marked as DONTNEED π
β¨ SYNOPSIS β¨
bool xe_bo_madv_is_dontneed (struct xe_bo *bo );
π¦ ARGUMENTS π¦
boβ the buffer object you're checking, bestie. that's the whole assignment π«Ά
πΈ DESCRIPTION πΈ
So this one literally just checks whether userspace has marked this BO as DONTNEED β like, its contents aren't currently needed and can absolutely get discarded under memory pressure ππ
And the way this is used internally? it's the vibe check for whether a BO is eligible for purging. that's it. that's the function. iconic behavior honestly π
π CONTEXT π
β οΈ caller must hold the BO's dma-resv lock β no cap, don't skip this one π
β RETURN β
returns true if the BO is marked DONTNEED, and false otherwise π
π SEE ALSO π
Kernel file ./drivers/gpu/drm/xe/xe_bo.h enum π₯
xe_madv_purgeable_state(9)xe_bo_is_purged(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)
and that's the whole page, bestie, go forth and check your BOs π§π
source: ./drivers/gpu/drm/xe Β· dated: October 2026 Β· you were reading xe_bo_madv_is_dontneed(9) the whole time ππ¦
π¦ 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