batadv_vlan_id_valid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_vlan_id_valid β€” yes bestie, this is a kernel API manual page

okay so real talk, this is batadv_vlan_id_valid from the Kernel API Manual, and honestly? it's a little guy with one job and it does it flawlessly. no cap.


✨ NAME ✨

batadv_vlan_id_valid β€” bestie, it literally just checks if the vlan id is in a valid batman-adv encoding πŸ¦‹


🌸 SYNOPSIS 🌸

bool batadv_vlan_id_valid (unsigned short vid );

that's it. that's the whole function signature. short, sweet, iconic πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • vid β€” the VLAN identifier πŸ’– like, the actual vlan number you're asking about

⭐ RETURN ⭐

  • true β€” comes back true when either no vlan is set or if the VLAN is in the correct range 🫢 slay
  • false β€” everything else, sorry babe, that's a false 😭

so yeah: no vlan at all = valid, on the money range = valid, otherwise = nope. not me being a straightforward little boolean πŸ’€


🌈 SEE ALSO 🌈

the whole originator.c friend group, fr fr β€” this is the Kernel file ./net/batman-adv/originator.c crew and they all showed up to the function party:

like, that's the entire group chat in one SEE ALSO section and every single one of them is tagged (9) because they're all main character kernel functions, iykyk πŸ’…


ngl bestie, this page is from ./net/batman-adv and it's dated October 2026 β€” so yeah, future vibes only 🧚 the whole thing lives under the Kernel API Manual alongside batadv_vlan_id_valid(9) itself, and honestly? obsessed. periodt. πŸ’œ
πŸ“¦ where this page comes from