STRUCT XE_BO_SHRINK_FLAGS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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