batadv_test_bit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 in seq_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 🌈


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