batadv_test_bit(9)
π batadv_test_bit(9)
okay so bestie, welcome to the Kernel API Manual page for batadv_test_bit(9) β yes that (9) means it's a kernel function, we're literally in the source tree now, main character energy fr fr.
β¨ NAME β¨
batadv_test_bit β check if a bit is set in the current window π
π¦ SYNOPSIS π¦
bool batadv_test_bit (const unsigned long *seq_bits , u32 last_seqno ,
u32 curr_seqno );
it returns a bool, it takes three args, that's the whole vibe. πΈ
π ARGUMENTS π
seq_bitsβ pointer to the sequence number bitmap of received packets. it's giving "the receipts, as a bitmap" πlast_seqnoβ the latest sequence number inseq_bits. the freshest one, the one that ate πcurr_seqnoβ the sequence number to test for. the one we're doing a vibe check on π₯
β RETURN β
true if the corresponding bit in the given seq_bits indicates true and curr_seqno is within range of last_seqno. otherwise it returns false. no cap, that's the whole contract π«Ά
ngl this is a two-condition situation β the bit has to be set and the sequence number has to be in range. both. not one. both. π
π SEE ALSO π
- Kernel file
./net/batman-adv/bitarray.h batadv_set_bit(9)
okay that's the page!! mwah π this one came from ./net/batman-adv, dated October 2026 β go read batadv_set_bit(9) next bestie, iykyk π§πβ¨
π¦ 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