ice_read_txq_ctx(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to ice_read_txq_ctx(9) from the Kernel API Manual β€” manual name folded in near the top, header line not copied, we move πŸ’… this page is literally about reading a Tx queue context out of the HW and unpacking it, and the vibes are immaculate.


✨ NAME ✨

ice_read_txq_ctx β€” read Tx queue context from HW. that's the name, that's the mission, periodt πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

int ice_read_txq_ctx (struct ice_hw *hw , struct ice_tlan_ctx *tlan_ctx
, u32 txq_index );

πŸŽ€ ARGUMENTS πŸŽ€

okay so here's the tea, bestie:

  • hw β€” pointer to the hardware structure. that's the hardware one, the big important pointer 🫢
  • tlan_ctx β€” pointer to the Tx queue context. this is where the unpacked context goes ✨
  • txq_index β€” the index of the Tx queue. you gotta tell it which queue you're reading, obviously πŸ’…

🌸 DESCRIPTION 🌸

Read the Tx queue context from the HW registers, then unpack it into the ice_tlan_ctx structure for use. that's literally it, no cap. this function pulls the Tx queue context out of the HW registers and unpacks it into the ice_tlan_ctx structure so it's ready to use. it's giving hardware whisperer energy πŸ”₯

πŸ”₯ RETURN πŸ”₯

returns 0 on success, or -EINVAL on an invalid Tx queue index. so if the index is bad, it's -EINVAL; if everything is good, it's 0. periodt πŸ’–

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file: ./drivers/net/ethernet/intel/ice/ice_common.c β€” that's the source file, bestie, go look at it if you want the full behind-the-scenes 🫢

and the whole friend group is here, fr fr β€” no one left on read:

okay bye bestie β€” this page is from the ./drivers/net/ethernet/intel/ice source, October 2026, and it's still ice_read_txq_ctx(9). mwah πŸ’œβœ¨

πŸ“¦ where this page comes from