i915_ttm_bu...visible_size(9)
β¨ i915_ttm_buddy_man_visible_size π
okay so welcome to the Kernel API Manual bestie, this one's a lil function from the i915 corner of the kernel and it's honestly so straightforward you're gonna slay it π«Ά
πΈ NAME πΈ
i915_ttm_buddy_man_visible_size β literally returns the size of the CPU visible portion, and it returns it in pages πβ¨ no cap, that's the whole vibe.
π SYNOPSIS π
u64 i915_ttm_buddy_man_visible_size (struct ttm_resource_manager *man );
so it takes one arg and hands you back a u64 β the return type is a u64 and the function name is i915_ttm_buddy_man_visible_size, both exactly as written, don't @ me π
π¦ ARGUMENTS π¦
manβ the buddy allocator ttm manager π that's it, that's the whole parameter list. it's giving "one job and she does it."
β SEE ALSO β
- Kernel file
./drivers/gpu/drm/i915/i915_ttm_buddy_manager.cβ the source file where the actual lore lives, go read it iykyk π i915_ttm_buddy_man_init(9)i915_ttm_buddy_man_fini(9)i915_ttm_buddy_man_reserve(9)i915_ttm_buddy_man_avail(9)
the whole buddy-manager friend group fr fr, init/fini/reserve/avail all in the same squad π
π reminder bestie: this page tells you it returns the CPU visible portion in pages β pages, not bytes. keep that energy or your math will be a mess π
and that's the page!! π written under ./drivers/gpu/drm/i915, dated October 2026, and yeah the header up top says i915_ttm_bu...visible_size(9) because kernel manpage titles love to truncate, iconic behavior honestly π
periodt β¨π
π¦ 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