STRUCT THC_DMA_CONTEXT(9)
π 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 aboutdma_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
- 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