panthor_vm_heaps_sizes(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ panthor_vm_heaps_sizes(9) πŸŽ€

okay so welcome to the Kernel API Manual entry for panthor_vm_heaps_sizes(9), bestie. This is the function that does the heap-chunk math for a VM, and we’re gonna read it like a group chat. πŸ’…βœ¨


🌸 NAME 🌸

panthor_vm_heaps_sizes β€” Calculate size of all heap chunks across all heaps over all the heap pools in a VM. πŸ’–

✨ SYNOPSIS ✨

void panthor_vm_heaps_sizes (struct panthor_file *pfile , struct
drm_memory_stats *stats );

🧚 ARGUMENTS 🧚

  • pfile β€” File. πŸŽ€
  • stats β€” Memory stats to be updated. 🌟

πŸ¦‹ DESCRIPTION πŸ¦‹

So here’s the vibe: she calculates all heap chunk sizes in all heap pools bound to a VM. Literally all of them, no cap. And if the VM is active, she records the size as active as well. βœ…

she’s not doing vibes-only math here β€” this is heap chunk size bookkeeping for a VM, and the active thing gets tracked as active. πŸ’…

πŸ’œ SEE ALSO πŸ’œ

Her kernel file is ./drivers/gpu/drm/panthor/panthor_mmu.c, and her whole friend group is: struct panthor_as_slot(9), struct panthor_mmu(9), struct panthor_vm_pool(9), struct panthor_vma(9), struct panthor_vm_op_ctx(9), struct panthor_vm(9), struct panthor_vm_bind_job(9), alloc_pt(9), free_pt(9), panthor_vm_has_unhandled_faults(9), panthor_vm_is_unusable(9), panthor_vm_active(9), panthor_vm_idle(9), panthor_vm_as(9), panthor_vm_alloc_va(9), panthor_vm_free_va(9), panthor_vm_get_bo_for_va(9), panthor_vm_pool_create_vm(9), panthor_vm_pool_destroy_vm(9), panthor_vm_pool_get_vm(9), panthor_vm_pool_destroy(9), panthor_vm_pool_create(9), panthor_mmu_suspend(9), panthor_mmu_resume(9), panthor_mmu_pre_reset(9), panthor_mmu_post_reset(9), panthor_vm_put(9), panthor_vm_get(9), panthor_vm_get_heap_pool(9), panthor_vm_resv(9), panthor_vm_bind_job_put(9), panthor_vm_create(9), panthor_vm_bind_job_create(9), panthor_vm_bind_job_prepare_resvs(9), panthor_vm_bind_job_update_resvs(9), panthor_vm_bind_exec_sync_op(9), panthor_vm_map_bo_range(9), panthor_vm_unmap_range(9), panthor_vm_prepare_mapped_bos_resvs(9), panthor_mmu_unplug(9), panthor_mmu_init(9), panthor_mmu_debugfs_init(9), panthor_mmu_pt_cache_init(9), panthor_mmu_pt_cache_fini(9).


xoxo, bestie β€” source/version: ./drivers/gpu/drm/panthor, date: October 2026, periodt. She ate. πŸ’–

πŸ“¦ where this page comes from