iwl_txq_dec_wrap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… iwl_txq_dec_wrap(9) β€” like, the Kernel API Manual page you didn't know you needed

okay so bestie, welcome to the <pink>Kernel API Manual</pink> entry for iwl_txq_dec_wrap, and yes this is the whole iwl_txq_dec_wrap(9) page, we're doing it πŸ’–


✨ NAME ✨

iwl_txq_dec_wrap β€” decrements the queue index, and when it runs out it wraps right back to the end πŸŽ€ literally the "no u" of index math


πŸ¦‹ SYNOPSIS πŸ¦‹

int iwl_txq_dec_wrap (struct iwl_trans *trans , int index );

she takes two things and gives you back an int, that's the whole vibe ✨


🌸 ARGUMENTS 🌸

  • trans β€” the transport (for configuration data) πŸ‘‘ like, it's the one carrying the config tea, she's the main character here
  • index β€” current index πŸ“ the number you're standing on right now, bestie

πŸ”₯ RETURN πŸ”₯

the queue index decremented, subject to wrapping πŸŒ€ so you get your index minus one, except when the wrap kicks in and she goes all the way around β€” no cap, that's it, that's the return value


⭐ SEE ALSO ⭐

  • The kernel file ./drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/internal.h πŸ“
  • struct iwl_rx_mem_buffer(9)
  • struct iwl_rx_transfer_desc(9)
  • struct iwl_rx_completion_desc(9)
  • struct iwl_rx_completion_desc_bz(9)
  • struct iwl_rxq(9)
  • struct iwl_rb_allocator(9)
  • iwl_get_closed_rb_stts(9)
  • enum iwl_fw_mon_dbgfs_state(9)
  • enum iwl_shared_irq_flags(9)
  • enum iwl_image_response_code(9)
  • struct cont_rec(9)
  • enum iwl_pcie_imr_status(9)
  • struct iwl_txq(9)
  • struct iwl_pcie_txqs(9)
  • struct iwl_trans_pcie(9)
  • iwl_txq_inc_wrap(9) πŸ’« (her sister btw, the one that goes the other way, obsessed with them both)

πŸ’€ friendly reminder that this page is literally just about decrementing an index with wrapping, so don't go reading extra behaviour into it, bestie β€” what you see is what you get πŸ™ˆ

okay that's the page!! 🫢 this little beauty lives in ./drivers/net/wireless/intel/i... and she's dated October 2026 β€” go off, gen1_2 internal header, you ate πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from