t1_wait_op_done(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… t1_wait_op_done(9) β€” the "are we there yet" of kernel API manual pages ✨

okay so this is t1_wait_op_done(9) from the Kernel API Manual bestie, and it's literally just the politest way to ask a register "u done yet??" over and over πŸŽ€


✨ NAME ✨

t1_wait_op_done β€” wait until an operation is completed 🫢

🌸 SYNOPSIS 🌸

int t1_wait_op_done (adapter_t *adapter , int reg , u32 mask , int
polarity , int attempts , int delay );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • adapter β€” the adapter performing the operation, it's giving main character energy πŸ‘‘
  • reg β€” the register to check for completion, this is the spot we keep staring at πŸ‘€
  • mask β€” a single-bit field within reg that indicates completion, no cap, literally just one bit πŸ”₯
  • polarity β€” the value of the field when the operation is completed, like the vibe check that finally passes βœ…
  • attempts β€” number of check iterations, aka how many times we're willing to ask 😭
  • delay β€” delay in usecs between iterations, lil breather between asks 🧚

πŸ’œ DESCRIPTION πŸ’œ

Wait until an operation is completed by checking a bit in a register up to attempts times. Returns 0 if the operation completes and 1 otherwise. periodt πŸ’…

ngl the whole thing is a loop with manners β€” check the bit, wait delay usecs, check again, up to attempts times, then report back with a 0 (slay, it's done) or a 1 (it did not, in fact, slay) πŸ™ˆ

⭐ SEE ALSO ⭐

Kernel file ./drivers/net/ethernet/chelsio/cxgb/subr.c β€” go read the source bestie, iykyk 🌈


and that's the page!! 🌸 brought to you by the source ./drivers/net/ethernet/chelsio... dated October 2026, mwah, drink water, and may all ur bits flip in time πŸ’–πŸ’…βœ¨

πŸ“¦ where this page comes from