thc_dma_release(9)
π thc_dma_release(9) β from the Kernel API Manual, bestie
okay so listen, this is a page straight out of the Kernel API Manual (that's the manual name, we're not being mysterious about it) and it's about thc_dma_release β literally the function that frees the DMA buffers for all the DMA engines. all of them. every single one. no stragglers. π
β¨ NAME β¨
thc_dma_release β release DMA buffers for all DMA engines π«Ά
like, the whole cleanup era. it's giving end-of-the-movie montage where everybody packs their bags and goes home.
πΈ SYNOPSIS πΈ
void thc_dma_release (struct thc_device *dev );
that's it. that's the whole signature. returns nothing (void), takes one (1) argument, and it is not here to play games. β
π ARGUMENTS π
devβ the pointer to the THC private device context. yes, that device context. the one you already have. hand it over and let the function do its thing. π¦
ngl if you're passing something that isn't a valid THC private device context, that's on you β the page just says it's the pointer of the THC private device context, and we're taking that at face value. π
π₯ SEE ALSO π₯
the whole friend group, honestly. go read these next:
- Kernel file
./drivers/hid/intel-thc-hid/intel-thc/intel-thc-dma.cπ thc_dma_set_max_packet_sizes(9)thc_dma_allocate(9)thc_dma_configure(9)thc_dma_unconfigure(9)thc_rxdma_reset(9)thc_rxdma_read(9)thc_swdma_read(9)thc_dma_write(9)
like, allocate it, configure it, unconfigure it, reset it, read it, write it, and β iconically β release it. the full lifecycle ate and left no crumbs. π
and that's the page!! mwah π this little icon was living in ./drivers/hid/intel-thc-hid/in... and dated October 2026, so yeah, she's from the future and she's still relevant. periodt. π§π
π¦ 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