STRUCT PANTHOR_HEAP_POOL(9)
β¨ NAME β¨
okay so bestie, this is struct panthor_heap_pool β the Pool of heap contexts β straight outta the Kernel API Manual (the struct panthor_heap_pool(9) page, iykyk) π
β¨
π SYNOPSIS π
struct panthor_heap_pool {
struct kref refcount;
struct panthor_device *ptdev;
struct panthor_vm *vm;
struct rw_semaphore lock;
struct xarray xa;
struct panthor_kernel_bo *gpu_contexts;
atomic_t size;
};
π«Ά Members π«Ά
okay bestie, member-by-member tour, no skips:
refcountβ the reference count, literally.ptdevβ the device.vmβ the VM this pool is bound to.lockβ the lock protecting access toxa.xaβ the array storingpanthor_heapobjects.gpu_contextsβ a buffer object containing the GPU heap contexts.sizeβ the size of all chunks across all heaps in the pool.
π Description π
this pool is attached to a panthor_file, and bestie, it can't be shared across processes. no cap.
π«Ά friendly reminder: not shareable across processes β that's the whole vibe.
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/panthor/panthor_heap.c struct panthor_heap_chunk_header(9)struct panthor_heap_chunk(9)struct panthor_heap(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_create(9)panthor_heap_pool_destroy(9)panthor_heap_pool_size(9)
mwah π this little icon came from source ./drivers/gpu/drm/panthor, dated October 2026, and it's serving struct panthor_heap_pool(9) from the Kernel API Manual β 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