xe_bo_madv_is_dontneed(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ”₯


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