iwl_pcie_get_sgt_tb_phys(9)
π iwl_pcie_get_sgt_tb_phys(9) π
okay so bestie, we're in the Kernel API Manual today and the star of the show is iwl_pcie_get_sgt_tb_phys β say that five times fast, i dare you π this one's a kernel function from the iwlwifi driver and she's lowkey iconic.
β¨ NAME β¨
iwl_pcie_get_sgt_tb_phys β find the TB address in a mapped SG list π―
π¦ SYNOPSIS π¦
dma_addr_t iwl_pcie_get_sgt_tb_phys (struct sg_table *sgt , unsigned int
offset , unsigned int len );
like, look at her go π signature's right there, no notes.
π ARGUMENTS π
sgtβ the scatter gather table, aka the whole vibe of mapped memory we're poking at πΊοΈoffsetβ how far into the mapped memory you wanna look (i.e. the SKB payload data, iykyk)lenβ the length of the area, so we know how much of it counts π
πΈ DESCRIPTION πΈ
so the whole point: this function finds the DMA address that corresponds to the SKB payload data sitting at the position given by offset. that's it, that's the tea β she maps your offset to an address, no cap.
π RETURN π
the address for the TB entry π«Ά literally what you came for.
π SEE ALSO π
- the kernel file
./drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx.cβ go read her, she's the main character π iwl_txq_free_tfd(9)iwl_pcie_prep_tso(9)
bestie reminder: those are the related calls fr fr, go check them out, don't just stop here π
and that's the page!! π§ source is ./drivers/net/wireless/intel/i... and it's dated October 2026 β mwah, bye, slay πβπ
π¦ 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