batadv_seq_after(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ batadv_seq_after(9) ✨

okay so this is a page from the Kernel API Manual and honestly? it's a little baddie πŸ’…

🌸 NAME 🌸

batadv_seq_after β€” checks if a sequence number x is a successor of y 🫢

πŸ¦‹ SYNOPSIS πŸ¦‹

batadv_seq_after (x , y );

πŸŽ€ ARGUMENTS πŸŽ€

  • x β€” the potential successor of y, like, the one auditioning for the role πŸ‘€
  • y β€” the value we're comparing x against, the main character that everyone gets measured up to

πŸ’– DESCRIPTION πŸ’–

okay bestie so here's the tea: this one handles overflows and underflows, and it can correctly check for a successor unless the variable sequence number has grown by more than 2**(bitwidth(x)-1)-1. so like. it's giving "works great, within reason" ✨

which means, for a u8 with the maximum value 255, it would think:

  • when adding nothing β€” it is neither a predecessor nor a successor 😐
  • before adding more than 127 to the starting value β€” it is a predecessor
  • when adding 128 β€” it is neither a predecessor nor a successor 😭
  • after adding more than 127 to the starting value β€” it is a successor πŸ”₯
ngl the middle ones are kinda the awkward "it's complicated" of sequence numbers πŸ’€

⭐ RETURN ⭐

true when x is a successor of y, false otherwise. simple, iconic, no notes πŸ‘‘

🌈 SEE ALSO 🌈


okay that's the whole thing, you ate that πŸ“ this was ./net/batman-adv, October 2026, batadv_seq_after(9) β€” mwah, go slay some sequence numbers, ily πŸ§šπŸ’œ

πŸ“¦ where this page comes from