STRUCT PANTHOR_HEAP_POOL(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 to xa.
  • xa β€” the array storing panthor_heap objects.
  • 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 πŸ‘‘


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