STRUCT PANTHOR_HW_OPS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct panthor_hw_ops(9) ✨

okay so you're in the Kernel API Manual, bestie, and we're talking about struct panthor_hw_ops πŸŽ€ β€” it's literally the collection of HW operations that are specific to a GPU. iykyk.


🌸 NAME 🌸

struct panthor_hw_ops β€” HW operations that are specific to a GPU. that's it, that's the vibe πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

struct panthor_hw_ops {
    int (*soft_reset)(struct panthor_device *ptdev);
    void (*l2_power_off)(struct panthor_device *ptdev);
    int (*l2_power_on)(struct panthor_device *ptdev);
    int (*power_changed_on)(struct panthor_device *ptdev);
    void (*power_changed_off)(struct panthor_device *ptdev);
 };

no cap, that's the whole struct β€” five function pointers, each one taking a struct panthor_device *ptdev, and we're gonna go through every single one 🫢


πŸ‘‘ Members πŸ‘‘

  • soft_reset β€” Soft reset function pointer. she resets things softly, iconic behaviour ✨
  • l2_power_off β€” L2 power off function pointer. this is the one that turns the L2 power off, and yes it returns void, so don't come looking for a status code πŸ™ˆ
  • l2_power_on β€” L2 power on function pointer. turns the L2 power on and actually gives you an int back, main character energy πŸ”₯
  • power_changed_on β€” Start listening to power change IRQs. like literally subscribing to the power-change gossip channel πŸ‘€
  • power_changed_off β€” Stop listening to power change IRQs. unsubscribing, blocking the notifications, leaving the group chat πŸ’€

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/gpu/drm/panthor/panthor_hw.h
  • struct panthor_hw(9) β€” go read that one too, fr fr ⭐

bestie reminder: every one of those five pointers takes exactly struct panthor_device *ptdev β€” no more, no less, no surprise arguments 🧚

anyway, that's the page! this gem came from ./drivers/gpu/drm/panthor, October 2026, in the struct panthor_hw_ops(9) era of the Kernel API Manual β€” slay, go forth and read your hardware ops πŸ’–πŸŒΈ

πŸ“¦ where this page comes from