batadv_set_bit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_set_bit(9) β€” like, the Kernel API Manual page, bestie πŸŽ€

Okay so picture this: it's a batadv_set_bit(9) situation, the manual is Kernel API Manual flavored, and we're about to flip one (1) single bit. That's it. That's the whole gig. And honestly? Iconic.


✨ NAME ✨

batadv_set_bit β€” turn corresponding bit on, so we can remember that we got the packet 🫢

Like, that's literally the entire personality. You set the bit, you remember the packet. Memory unlocked, bestie.


🌸 SYNOPSIS 🌸

void batadv_set_bit (unsigned long *seq_bits , s32 n );

No return value, no drama, no exit status. It's void and it knows it. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • seq_bits β€” the bitmap of the packet receive window. Think of it as the group chat of packets: this is where the receipts live, and you're about to mark one as received. πŸ’–
  • n β€” the relative sequence number of the newly received packet. It's s32, it's relative, and it's pointing at which bit we're about to turn on. Slay.
Heads up bestie: n is the relative sequence number, not some absolute one. Keep that straight and you're golden. ✨

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./net/batman-adv/bitarray.h β€” go read the source, iykyk πŸ“–
  • batadv_test_bit(9) β€” the bestie to this function, fr fr

🌈 and that's the whole page!! source/version vibes are ./net/batman-adv, dated October 2026, blessed by the Kernel API Manual ✨ go forth and set bits, main character πŸ’œπŸ‘‘

πŸ“¦ where this page comes from