panthor_heap_pool_create(9)
π panthor_heap_pool_create(9) β the Kernel API Manual, bestie edition π
okay so you're in the kernel API manual (section 9, iykyk) and the function we're obsessing over today is literally called panthor_heap_pool_create. yes she's a mouthful, no we're not renaming her, periodt. β¨
πΈ NAME πΈ
panthor_heap_pool_create β Create a heap pool. that's it, that's the whole job, and she does it gorgeously π
π¦ SYNOPSIS π¦
struct panthor_heap_pool * panthor_heap_pool_create (struct
panthor_device *ptdev , struct panthor_vm *vm );
like, she takes two things and hands you back a struct panthor_heap_pool *. main character energy fr fr π
π ARGUMENTS π
ptdevβ the Device. your actual hardware babe, the thing doing the work πvmβ the VM this heap pool will be attached to. yes she's ride-or-die with exactly one VM, no cap π«Ά
β DESCRIPTION β
so here's the vibe: heap pools might contain up to 128 heap contexts (one hundred and twenty-eight, iconic number, no notes), and they're per-VM. meaning every VM gets its own pool, they don't share, they don't pass things around, that's the whole arrangement π§
π RETURN π
- a valid pointer on success β slay π
- a negative error code otherwise β π not slay, but at least it's informative
π₯ SEE ALSO π₯
the kernel file ./drivers/gpu/drm/panthor/panthor_heap.c is where all the lore lives, bestie, go read it. and also these absolute icons:
struct 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_grow(9)panthor_heap_pool_put(9)panthor_heap_pool_get(9)panthor_heap_pool_destroy(9)panthor_heap_pool_size(9)
ngl if you skip the SEE ALSO list the heaps will simply not vibe with you. read them all. it's giving "required reading" for a reason π
that's the whole page, bestie β straight from ./drivers/gpu/drm/panthor, dated October 2026, signed off as panthor_heap_pool_create(9) and honestly? she ate. πβ¨ bye ilysm π«Άπ
π¦ 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