t1_wait_op_done(9)
π 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 withinregthat 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, waitdelayusecs, check again, up toattemptstimes, then report back with a0(slay, it's done) or a1(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
- 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