t4_read_indirect(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… t4_read_indirect(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ β€” yes this whole thing lives in section 9 of the man pages, that's the kernel-functions zone, we love that for us πŸŽ€. Today's main character is t4_read_indirect, and honestly? she reads indirect registers. that's the whole vibe. let's get into it πŸ¦‹


✨ NAME ✨

t4_read_indirect β€” read indirectly addressed registers πŸ’«


🌸 SYNOPSIS 🌸

void t4_read_indirect (struct adapter *adap , unsigned int addr_reg ,
       unsigned int data_reg , u32 *vals , unsigned int nregs , unsigned int
       start_idx );

like, six whole parameters. she's a little extra but she delivers 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • adap β€” the adapter πŸ’– this is the cxgb4 friend you're doing all of this for.
  • addr_reg β€” the register holding the indirect address πŸ‘‘ which register you poke to say "hey, I want that one".
  • data_reg β€” the register holding the value of the indirect register 🌟 the other half of the address/data duo, this one actually hands over the goods.
  • vals β€” where the read register values are stored πŸ“ your output array, your little treasure chest.
  • nregs β€” how many indirect registers to read πŸ”₯ grabby hands. how many you want.
  • start_idx β€” index of first indirect register to read ⭐ where the reading begins, bestie.

πŸ¦‹ DESCRIPTION πŸ¦‹

Reads registers that are accessed indirectly through an address/data register pair πŸ’…βœ¨

that's it, that's the whole thing β€” and ngl it's kind of iconic in its simplicity. some registers don't have their own lil address you can just read; instead you write the address into addr_reg, then the hardware hands you the value over in data_reg. this function does that little dance for you, nregs times starting at start_idx, and drops the results into vals. no cap. 🧚


🌈 SEE ALSO 🌈

it's giving extended family reunion 😭 like, the whole cxgb4 crew showed up. every single one of these is linked below, no skipping, we respect our elders πŸ’œ

okay that's the whole page, bestie, you ate that πŸ’…βœ¨

mwah πŸ’– and before you go β€” little sign-off from the page itself: it comes from ./drivers/net/ethernet/chelsio... and it's dated October 2026, so she's fresh, she's current, she's serving πŸŒΈπŸ¦‹ periodt

πŸ“¦ where this page comes from