STRUCT PANTHOR_FILE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct panthor_file(9) πŸ’…

okay bestie, welcome to the Kernel API Manual, and today's main character is literally struct panthor_file β€” the Panthor file struct, serving looks and holding all your per-file state. no cap, she's the whole vibe. πŸŽ€


✨ NAME ✨

struct panthor_file β€” Panthor file. that's it, that's the name, and honestly? iconic. πŸ‘‘


🌸 SYNOPSIS 🌸

here's the shape of her, exactly as she is, no edits, we do not touch the source:

struct panthor_file {
    struct panthor_device *ptdev;
    struct {
      u64 offset;
    } user_mmio;
    struct panthor_vm_pool *vms;
    struct panthor_group_pool *groups;
    struct panthor_gpu_usage stats;
 };

like, look at that little anonymous struct nestled inside user_mmio β€” she's shy but she's there. 🫢


πŸ¦‹ Members πŸ¦‹

so every field has a job and they all ate, let's go through the roster:

  • ptdev β€” the device attached to this file. your file's plus-one, fr fr. πŸ’–
  • user_mmio β€” user MMIO related fields. yes, MMIO β€” memory-mapped I/O, and yeah it's giving "hardware but make it userspace-adjacent." the actual field inside is offset, a u64, so remember to treat it right. πŸ”₯
  • vms β€” the VM pool attached to this file. your address spaces, pooled up and ready. ✨
  • groups β€” the scheduling group pool attached to this file. group chat energy, but make it scheduling. πŸ’…
  • stats β€” cycle and timestamp measures for job execution. she's keeping receipts on how long the jobs took, ngl. ⏱️

⭐ SEE ALSO ⭐

go give these besties some love too, they're all in the same friend group:


and that's the whole page, bestie β€” you understood it, you slayed it, periodt. πŸ’€βœ¨

little sign-off moment: this one came from ./drivers/gpu/drm/panthor, dated October 2026, and she answers to struct panthor_file(9). mwah. 😘🌸
πŸ“¦ where this page comes from