STRUCT THC_DMA_CONTEXT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct thc_dma_context(9)

Ok so bestie, welcome to the Kernel API Manual β€” yes we're reading kernel headers now, we contain multitudes πŸŽ€ This one's all about struct thc_dma_context, aka the THC DMA context, and honestly? It's giving "small struct, big responsibilities." Let's get into it ✨


🌸 NAME

struct thc_dma_context β€” the THC DMA context. That's it, that's the vibe. πŸ‘‘


✨ SYNOPSIS

Here's the whole thing, laid out exactly as it lives in the header, no cap:

struct thc_dma_context {
    struct thc_dma_configuration dma_config[MAX_THC_DMA_CHANNEL];
    u8 use_write_interrupts;
    bool rx_max_size_en;
    bool rx_int_delay_en;
 };

Like, look at her. dma_config is an array of struct thc_dma_configuration sized MAX_THC_DMA_CHANNEL, and then there's a u8 flag and two bools. Simple, iconic, done. πŸ¦‹


🫢 Members

Ok so the Members section is where the lore drops, and here's what each one is actually about:

  • use_write_interrupts β€” tells you whether TxDMA is using an interrupt or polling. That's the whole assignment, bestie: interrupt vs. polling, pick your fighter. ⚑
  • rx_max_size_en β€” a temp flag (yes, temp, she's just visiting πŸ‘€) that indicates whether the THC I2C Rx max input size control feature is enabled or not. Important detail: it's only used during SWDMA operation. Don't come for her outside of SWDMA, she's not clocked in. πŸ’€
  • rx_int_delay_en β€” also a temp flag, this time indicating whether the THC I2C Rx interrupt delay feature is enabled or not. And same rule as her sister above: only used during SWDMA operation. Periodt. πŸŽ€
Not me pointing out that dma_config shows up in the struct but doesn't get its own Members write-up here β€” that's just how the page is, so I'm not gonna invent lore for it. πŸ™ˆ

πŸ”₯ SEE ALSO

Go touch grass in the kernel tree, specifically:

  • Kernel file ./drivers/hid/intel-thc-hid/intel-thc/intel-thc-dma.h
  • struct thc_dma_configuration(9) β€” the one you actually want if you're curious about dma_config πŸ‘€

🌈 Sign-off

This lil masterpiece comes from ./drivers/hid/intel-thc-hid/in... (yes, the source path itself got the ellipsis treatment, she's mysterious like that 🧚) and it's dated October 2026. Manual name: struct thc_dma_context(9). Slay, go read your headers, ily, bye! πŸ’–β­

πŸ“¦ where this page comes from