STRUCT MV_XOR_V2_DEVICE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct mv_xor_v2_device(9) πŸ’–

okay so this is the kernel API manual page for struct mv_xor_v2_device, and honestly? she's a whole mood. bestie, this struct implements a xor device β€” that's the entire vibe of the NAME section, no notes, periodt. πŸ‘‘


✨ NAME ✨

struct mv_xor_v2_device β€” implements a xor device πŸŽ€


🌸 SYNOPSIS 🌸

here's the whole glow-up, character for character, no cap:

struct mv_xor_v2_device {
    spinlock_t lock;
    void __iomem *dma_base;
    void __iomem *glob_base;
    struct clk *clk;
    struct clk *reg_clk;
    struct tasklet_struct irq_tasklet;
    struct list_head free_sw_desc;
    struct dma_device dmadev;
    struct dma_chan dmachan;
    dma_addr_t hw_desq;
    struct mv_xor_v2_descriptor *hw_desq_virt;
    struct mv_xor_v2_sw_desc *sw_desq;
    int desc_size;
    unsigned int npendings;
    unsigned int hw_queue_idx;
    unsigned int irq;
};

like, look at her. so many fields. main character energy fr fr. πŸ’…


πŸ¦‹ Members πŸ¦‹

every single member, broken down, because we don't skip, we don't summarise, we serve. 🫢

  • lock β€” lock for the engine πŸ”’
  • dma_base β€” memory mapped DMA register base
  • glob_base β€” memory mapped global register base
  • clk β€” reference to the 'core' clock
  • reg_clk β€” reference to the 'reg' clock
  • irq_tasklet β€” tasklet used for IRQ handling call-backs
  • free_sw_desc β€” linked list of free SW descriptors
  • dmadev β€” dma device
  • dmachan β€” dma channel
  • hw_desq β€” HW descriptors queue
  • hw_desq_virt β€” virtual address of DESCQ
  • sw_desq β€” SW descriptors queue
  • desc_size β€” HW descriptor size
  • npendings β€” number of pending descriptors (for which tx_submit has
  • hw_queue_idx β€” HW queue index
  • irq β€” The Linux interrupt number been called, but not yet issue_pending)
πŸ™ˆ okay so real talk β€” the wording for npendings and irq got a lil tangled up in the original page, the text runs straight through each other. every word is still here verbatim, we are NOT out here fixing the docs, we're just describing them. iykyk. πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./drivers/dma/mv_xor_v2.c
  • struct mv_xor_v2_descriptor(9)
  • struct mv_xor_v2_sw_desc(9)

like go read those next, they're literally her friends. 🌈


and that's the page!! mwah πŸ’‹ this came out of ./drivers/dma in October 2026, so yeah β€” that's the source/version and the date, consider them shouted out, we love a documented struct. slay, bye bestie!! β­πŸ§šπŸ’œ

πŸ“¦ where this page comes from