ath5k_hw_start_tx_dma(9)
π ath5k_hw_start_tx_dma β the Kernel API Manual page, bestie edition
Okay so real talk, this is a page from the Kernel API Manual, and it's all about ath5k_hw_start_tx_dma. Buckle up, it's actually not scary π«Ά
β¨ NAME β¨
ath5k_hw_start_tx_dma β start DMA transmit for a specific queue π«
π SYNOPSIS π
int ath5k_hw_start_tx_dma (struct ath5k_hw *ah , unsigned int queue );
That's it, that's the whole vibe check. You hand it a chip and a queue number, it gives you back an int. Slay.
πΈ ARGUMENTS πΈ
ahβ thestruct ath5k_hw, i.e. your main character. The hardware struct. Obviously.queueβ the hw queue number π literally just which queue you're pointing at.
π¦ DESCRIPTION π¦
So what does it do? It starts DMA transmit for a specific queue. Easy.
But here's the tea β β 5210 doesn't have QCU/DCU, so for that chip you set up the queue parameters right here, inside this function, based on queue type. And the queue types are:
- one queue for normal data π¦
- one queue for beacons π
For queue setup on the newer chips, go check out qcu.c instead, iykyk.
It returns -EINVAL if the queue number is out of range β or, plot twist, if the queue is already disabled. Yeah. Already disabled. Not a typo, that's what it says π
β NOTE β
Bestie, listen. This one must be called after setting up the tx control descriptor for that queue (see below). Order matters, fr fr. Don't come at it out of sequence.
π SEE ALSO π
- Kernel file
./drivers/net/wireless/ath/ath5k/dma.cβ DMA and interrupt masking functions(9) ath5k_hw_start_rx_dma(9)ath5k_hw_stop_rx_dma(9)ath5k_hw_get_rxdp(9)ath5k_hw_set_rxdp(9)ath5k_hw_stop_tx_dma(9)ath5k_hw_stop_beacon_queue(9)ath5k_hw_get_txdp(9)ath5k_hw_set_txdp(9)ath5k_hw_update_tx_triglevel(9)ath5k_hw_is_intr_pending(9)ath5k_hw_get_isr(9)ath5k_hw_set_imr(9)ath5k_hw_dma_init(9)ath5k_hw_dma_stop(9)
That's the whole squad π§ go read them, they're all iconic.
And that's a wrap! This masterpiece lives in ./drivers/net/wireless/ath/ath5k, version dated October 2026 π catch you in the next man page, mwah π
π¦ 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