batadv_tt_global_valid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_tt_global_valid(9) β€” bestie edition

okay so this is a page straight out of the Kernel API Manual (yes, that's the whole manual name, we're fancy like that ✨), and it's about one little function that does a vibe check on global TT entries. it's short, it's sweet, let's go 🫢


🌸 NAME 🌸

batadv_tt_global_valid β€” verify global tt entry and get flags πŸ‘‘

like, the whole job is: is this entry valid or not, and while we're here, lemme hand you the flags.


✨ SYNOPSIS ✨

bool batadv_tt_global_valid (const void *entry_ptr , const void
*data_ptr , u8 *flags );

note the return type bestie: it's a bool. true or false, no in-between, no "it's complicated" πŸ’€


πŸŽ€ ARGUMENTS πŸŽ€

  • entry_ptr β€” the global tt entry that's about to get checked, aka the main character of this whole page 🌟
  • data_ptr β€” an orig_node object, and lowkey it may be NULL. that's not a typo, that's allowed, keep up πŸ”₯
  • flags β€” a pointer where we're gonna store the TT flags for this client. you hand it over, we fill it in πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically: it checks the validity of the given global TT entry. that's the whole first step, no cap.

and if it's valid? then the flags pointer you so kindly provided gets updated. and here's the fork in the road iykyk:

  • if data_ptr is NULL β†’ you get the common (summed) TT flags 🌈
  • otherwise β†’ you get the specific, per originator TT flags for that one originator 🧚

the way that it just picks the flavour based on whether data_ptr is NULL… iconic behaviour honestly πŸ’…


⭐ RETURN ⭐

true if the entry is a valid, false otherwise. 🎯

(yes, that's exactly how the original words it β€” "if the entry is a valid" β€” we're not fixing it, we're respecting it, periodt 😌)


πŸ‘‘ SEE ALSO πŸ‘‘

brought to you by ./net/batman-adv/translation-table.c β€” the whole translation-table friend group showed up and honestly? obsessed. πŸŒΈπŸ’œ


fr fr that's the entire list, every single one, we did not skip a single (9) because that would be disrespectful πŸ’€πŸ«Ά

πŸ“ cute little sign-off πŸ“

this lil page lives in ./net/batman-adv and it's dated October 2026 β€” so yeah, it's giving future icon, main character energy from day one πŸ‘‘βœ¨

slay, go read some translation-table code, and remember: check your entries, store your flags, and never pass a bad pointer bestie πŸ’–πŸ§šπŸŒˆ

πŸ“¦ where this page comes from