STRUCT XE_BO_SHRINK_FLAGS(9)
πΈ NAME πΈ
struct xe_bo_shrink_flags β the lil flag bundle that governs how shrinking behaves, bestie π
okay so this is from the Kernel API Manual, and honestly? it's giving "tiny struct, big responsibilities." let's get into it π«Ά
β¨ SYNOPSIS β¨
struct xe_bo_shrink_flags {
u32 purge : 1;
u32 writeback : 1;
};
two u32 bitfields, one bit each β no cap, that's the whole struct π adorable
π Members π
purgeβ only purging is allowed here, periodt. if the bo isn't purgeable, don't shrink it. no exceptions, bestie πwritebackβ try to immediately move the content to swap. like right now, immediately, don't wait π₯
π¦ SEE ALSO π¦
kernel file ./drivers/gpu/drm/xe/xe_bo.h enum
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), 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), xe_bo_is_mem_type(9)
go read them all, iykwim β the whole friend group is iconic π
and that's the whole page, bestie!! shoutout to ./drivers/gpu/drm/xe for hosting this absolute legend of a header, dated October 2026 π mwah, slay, see you in the next (9) πΈβ¨π
π¦ 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