i915_gem_object_evictable(9)
πΈ NAME πΈ
i915_gem_object_evictable β okay so basically it tells you whether an object is likely evictable after unbind π
(this is from the Kernel API Manual, btw, in case you were wondering where all this lore comes from β¨)
π¦ SYNOPSIS π¦
bool i915_gem_object_evictable (struct drm_i915_gem_object *obj );
π ARGUMENTS π
objβ the object you wanna check. the main character of this whole function, honestly π«Ά
π DESCRIPTION π
So this function checks whether the object is likely unvictable after unbind. (yes that's their word, not mine π)
Here's the tea, bestie β the answer depends on when you ask π
- If the object is not locked when you're checking, the result is only advisory. it's giving "vibes-based estimate", not a promise π
- If the object is locked when you're checking, and the function returns
true, then an eviction should indeed be possible. slay, that one you can trust β¨
But wait β there's a plot twist π since unlocked vma unpinning and unbinding is currently possible, the object can actually become evictable even if this function returnsfalse. so afalseis NOT a forever-no, no cap. don't come for me if it flips later π
π₯ RETURN π₯
true if the object may be evictable. false otherwise.
(that's it. that's the whole vibe check π)
β SEE ALSO β
Kernel file: ./drivers/gpu/drm/i915/gem/i915_gem_object.c
The whole friend group, fr fr:
__i915_gem_object_fini(9)i915_gem_object_set_cache_coherency(9)i915_gem_object_set_pat_index(9)__i915_gem_object_pages_fini(9)i915_gem_object_read_from_page(9)i915_gem_object_migratable(9)i915_gem_object_has_struct_page(9)i915_gem_object_has_iomem(9)i915_gem_object_can_migrate(9)i915_gem_object_migrate(9)__i915_gem_object_migrate(9)i915_gem_object_placement_possible(9)i915_gem_object_needs_ccs_pages(9)i915_gem_object_get_moving_fence(9)i915_gem_object_wait_moving_fence(9)
mwah π that's the page!! brought to you by ./drivers/gpu/drm/i915/gem, dated October 2026, and yes the title is i915_gem_object_evictable(9) β go forth and evict responsibly, bestie π§β¨
π¦ 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