t4_wait_op_done_val(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… t4_wait_op_done_val β€” the t4_wait_op_done_val(9) glow-up πŸŽ€

okay so bestie, we're in the Kernel API Manual today and this one is literally the "are we there yet" of kernel functions β€” it just sits there checking a register until the hardware says it's done. no cap, it's giving patient bestie energy. πŸ¦‹


✨ NAME ✨

t4_wait_op_done_val β€” wait until an operation is completed

like, literally just wait until an operation is completed. that's the whole vibe. ⏳


🌸 SYNOPSIS 🌸

int t4_wait_op_done_val (struct adapter *adapter , int reg , u32 mask ,
       int polarity , int attempts , int delay , u32 *valp );

πŸŽ€ ARGUMENTS πŸŽ€

  • adapter β€” the adapter performing the operation πŸ‘‘ (the main character doing the actual work)
  • reg β€” the register to check for completion πŸ” like the little status board you keep refreshing
  • mask β€” a single-bit field within reg that indicates completion. one bit. that's the whole signal, iykyk ✨
  • polarity β€” the value of the field when the operation is completed 🫢 so this is what "done" actually looks like
  • attempts β€” number of check iterations πŸ” how many times we're willing to peek
  • delay β€” delay in usecs between iterations ⏱️ the little breather between peeks (microseconds, bestie, not seconds)
  • valp β€” where to store the value of the register at completion time πŸ’Ύ it's the souvenir

πŸ’– DESCRIPTION πŸ’–

Wait until an operation is completed by checking a bit in a register up to attempts times. πŸŒ€

If valp is not NULL the value of the register at the time it indicated completion is stored there. so yeah β€” pass NULL if you don't care, pass a pointer if you want the receipts. πŸ™ˆ

Returns 0 if the operation completes and -EAGAIN otherwise. boom. that's it. iconic behaviour honestly. πŸ’…


🌈 SEE ALSO 🌈

Kernel file ./drivers/net/ethernet/chelsio/cxgb4/t4_hw.c β€” yes, that's where the magic lives οΏ½οΏ½

and now the part where I list literally everyone in the friend group, no skipping, no cap:

ok that's the whole extended friend group, every single one of them, in order, nothing dropped. slay. πŸ”₯

and that's the page, bestie!! 🧚 the source/version bits say ./drivers/net/ethernet/chelsio... and the date is October 2026, and the page itself answers to t4_wait_op_done_val(9). mwah πŸ’‹ go check that register. periodt. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from