STRUCT ATH5K_TXQ(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct ath5k_txq(9) β€” Transmit queue state πŸ’…

okay bestie, this is the Kernel API Manual entry for struct ath5k_txq, aka Transmit queue state β€” and honestly? The way this struct is just sitting here managing queue lore is iconic βœ¨πŸ’–


🌸 NAME 🌸

struct ath5k_txq β€” Transmit queue state πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

       struct ath5k_txq {
           unsigned int            qnum;
           u32 *link;
           struct list_head        q;
           spinlock_t lock;
           bool setup;
           int txq_len;
           int txq_max;
           bool txq_poll_mark;
           unsigned int            txq_stuck;
        };

πŸŽ€ Members πŸŽ€

  • qnum β€” Hardware q number πŸ‘‘
  • link β€” Link ptr in last TX desc πŸ”—
  • q β€” Transmit queue (struct list_head) 🧚
  • lock β€” Lock on q and link πŸ”’
  • setup β€” Is the queue configured πŸ‘€
  • txq_len β€” Number of queued buffers πŸ“
  • txq_max β€” Max allowed num of queued buffers 🌈
  • txq_poll_mark β€” Used to check if queue got stuck πŸ’€
  • txq_stuck β€” Queue stuck counter 😭

✨ Description ✨

okay so picture this: one of these exists for each hardware transmit queue πŸŽ€. Packets sent to us from above are assigned to queues based on their priority β€” that's just the system, no cap. Not all devices support a complete set of hardware transmit queues, and for those devices the array sc_ac2q will map multiple priorities to fewer hardware queues (typically all to one hardware queue). That's the whole vibe, fr fr πŸ’…


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/net/wireless/ath/ath5k/ath5k.h enum β€” and then the whole friend group:

  • enum ath5k_version(9)
  • enum ath5k_radio(9)
  • Atheros XR(9)
  • Atheros SuperAG(9)
  • enum ath5k_driver_mode(9)
  • enum ath5k_ant_mode(9)
  • enum ath5k_bw_mode(9)
  • struct ath5k_tx_status(9)
  • enum ath5k_tx_queue(9)
  • enum ath5k_tx_queue_subtype(9)
  • enum ath5k_tx_queue_id(9)
  • struct ath5k_txq_info(9)
  • enum ath5k_pkt_type(9)
  • struct ath5k_rx_status(9)
  • enum ath5k_rfgain(9)
  • struct ath5k_gain(9)
  • struct ath5k_athchan_2ghz(9)
  • enum ath5k_dmasize(9)
  • Rate codes(9)
  • enum ath5k_int(9)
  • enum ath5k_calibration_mask(9)
  • enum ath5k_power_mode(9)

Source/version: ./drivers/net/wireless/ath/ath5k Β· Date: October 2026 Β· struct ath5k_txq(9) β€” mwah, bye bestie πŸ’‹πŸ’–πŸ«Ά

πŸ“¦ where this page comes from