t4_read_cim_obq(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… t4_read_cim_obq β€” read the contents of a CIM outbound queue

okay so bestie, welcome to the Kernel API Manual ✨ this one's about t4_read_cim_obq, and it's honestly a whole vibe. grab a snack, we're reading a queue πŸ“


✨ SYNOPSIS ✨

int t4_read_cim_obq (struct adapter *adap , unsigned int qid , u32 *data
, size_t n );

like, that's the whole signature. she's compact, she's iconic πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • adap β€” the adapter. the main character of this whole operation πŸ’…
  • qid β€” the queue index. which queue we're pulling from, iykyk
  • data β€” where to store the queue contents. this is the destination, she's empty and waiting 🫢
  • n β€” capacity of data in 32-bit words. so like, how much room you've got

🌸 DESCRIPTION 🌸

okay so here's what she does: this function reads the contents of the selected CIM queue, starting at address 0, going up to the capacity of data. no skipping ahead, we start from the very beginning, periodt ✨

⚠️ real talk: n must be a multiple of 4. that is not a suggestion, that's a rule, and she will not be flexible about it πŸ’€

and the return value? it's giving dual-purpose:

  • returns < 0 on error 😭
  • returns the number of 32-bit words actually read on success πŸ”₯

so like, don't just check for nonzero β€” check the sign, bestie. negative means something went wrong, positive means you ate and left no crumbs πŸ‘‘


πŸ¦‹ SEE ALSO πŸ¦‹

first up, the source file herself:

  • Kernel file ./drivers/net/ethernet/chelsio/cxgb4/t4_hw.c

and now the extended family β€” honestly there are so many of them, it's giving family reunion πŸŽ‰

like, every single one of them. no cap, that's the whole list 🫢


okay that's the page!! mwah πŸ’– this one came from ./drivers/net/ethernet/chelsio... and she's dated October 2026 β€” go read some queues, bestie, you're gonna slay πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from