panthor_heap_grow(9)
π panthor_heap_grow(9) β like, the Kernel API Manual page, bestie π
okay so real talk, this is a page from the Kernel API Manual and it's all about panthor_heap_grow β the little function whose whole entire job is to make a heap context grow. that's it. that's the vibe. main character energy fr fr β¨
πΈ NAME πΈ
panthor_heap_grow β Make a heap context grow.
like literally the name says it. we're growing a heap context. slay π
β¨ SYNOPSIS β¨
int panthor_heap_grow (struct panthor_heap_pool *pool , u64 heap_gpu_va
, u32 renderpasses_in_flight , u32 pending_frag_count , u64
*new_chunk_gpu_va );
no cap, that's the whole signature. it returns an int and takes five things. we'll get into each one, don't worry π«Ά
π¦ ARGUMENTS π¦
okay bestie, here's the cast of characters, and each one matters:
poolβ The pool this heap belongs to. it's giving "your heap's home base," iykyk πheap_gpu_vaβ The GPU address of the heap context. that's theu64address situation, very GPU, very address β¨renderpasses_in_flightβ Number of render passes currently in-flight. like, how many are literally airborne right now π«pending_frag_countβ Number of fragment jobs waiting for execution/completion. they're in the queue, being patient, we love them for it πnew_chunk_gpu_vaβ Pointer used to return the chunk VA. it's an out-param, so it hands the chunk VA back to you π
π₯ RETURN π₯
the return values, and yes we're listing all three because facts are facts:
0if a new heap was allocated β a win, we ate, no crumbs π-ENOMEMif the tiler context reached the maximum number of chunks or if too many render passes are in-flight or if the allocation failed β yeah that's three separate ways to hit it, all one error code, that's just how it is π-EINVALif any of the arguments passed topanthor_heap_growis invalid β bad input, invalid vibes, blocked π
π SEE ALSO π
here's the whole friend group, all of them, in order, no one left behind:
- Kernel file
./drivers/gpu/drm/panthor/panthor_heap.cstruct panthor_heap_chunk_header(9)struct panthor_heap_chunk(9)struct panthor_heap(9)struct panthor_heap_pool(9)panthor_heap_destroy(9)panthor_heap_create(9)panthor_heap_return_chunk(9)panthor_heap_pool_put(9)panthor_heap_pool_get(9)panthor_heap_pool_create(9)panthor_heap_pool_destroy(9)panthor_heap_pool_size(9)
bestie reminder: -ENOMEM shows up for three whole reasons (max chunks reached, too many render passes in-flight, or the allocation straight-up failing) β don't forget any of them, okay? π
and that's the page!! source lives at ./drivers/gpu/drm/panthor, dated October 2026, and it's the panthor_heap_grow(9) page π¦β¨ mwah, go grow that heap, ily π«Άπ
π¦ 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