STRUCT ETHOSU_DEVICE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct ethosu_device β€” NAME πŸ’–

okay bestie so this is a page from the Kernel API Manual, and it's all about struct ethosu_device β€” literally the Ethosu device, that's the whole name, we love a straightforward icon ✨


🌸 SYNOPSIS 🌸

here's the whole struct, character for character, no edits, no vibes-based refactoring, we do NOT touch the code blocks 🫢

struct ethosu_device {
    struct drm_device base;
    void __iomem *regs;
    void __iomem *pmu_regs;
    void __iomem *sram;
    struct gen_pool *srampool;
    dma_addr_t sramphys;
    struct clk_bulk_data *clks;
    int num_clks;
    int irq;
    struct drm_ethosu_npu_info npu_info;
    struct ethosu_job *in_flight_job;
    spinlock_t fence_lock;
    struct drm_gpu_scheduler sched;
    struct mutex sched_lock;
    u64 fence_context;
    u64 emit_seqno;
    struct {
      struct mutex lock;
      struct ethosu_perfmon *active;
    } perfmon_state;
    struct ethosu_perfmon *global_perfmon;
 };

like, look at her. she's got regs and pmu_regs and sram and srampool and sramphys, she's got clks and num_clks, she's got an irq, she's got npu_info, she's got an in_flight_job (busy girlie πŸ’…), she's got fence_lock, sched and sched_lock, fence_context and emit_seqno, she's got an anonymous struct holding perfmon_state with its own lock and active inside, and then global_perfmon on top of all that. main character energy fr fr πŸ‘‘


πŸŽ€ Members πŸŽ€

  • base β€” base drm_device. that's it. that's the documented member. the rest of the squad is out here living their lives undocumented and honestly? we respect the mystery πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./drivers/accel/ethosu/ethosu_device.h β€” go read the header bestie, that's where the lore lives πŸ“–βœ¨

ngl this page is short but it ate. every member, every type, every pointer β€” all accounted for, no cap πŸ’―

okay that's the whole page, and before you close the tab: this little gem came from ./drivers/accel/ethosu, dated October 2026, page struct ethosu_device(9) β€” stan her, cite her, keep the details exact, periodt πŸŒˆπŸ’œπŸŽ€

πŸ“¦ where this page comes from