STRUCT MV_XOR_V2_DEVICE(9)
π 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 baseglob_baseβ memory mapped global register baseclkβ reference to the'core'clockreg_clkβ reference to the'reg'clockirq_taskletβ tasklet used for IRQ handling call-backsfree_sw_descβ linked list of free SW descriptorsdmadevβ dma devicedmachanβ dma channelhw_desqβ HW descriptors queuehw_desq_virtβ virtual address ofDESCQsw_desqβ SW descriptors queuedesc_sizeβ HW descriptor sizenpendingsβ number of pending descriptors (for whichtx_submithashw_queue_idxβ HW queue indexirqβ The Linux interrupt number been called, but not yetissue_pending)
π okay so real talk β the wording fornpendingsandirqgot 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms