batadv_bla_get_backbone_gw(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_bla_get_backbone_gw β€” the "find it or make it" girlie of bridge loop avoidance

okay so bestie, welcome to the batadv_bla_get_backbone_gw(9) page πŸ’– this is a Kernel API Manual moment and honestly the whole thing is about one job: you hand it some stuff, and it either finds you a backbone gateway or creates one for you. lowkey iconic. literally a find-or-create. slay.


✨ NAME ✨

batadv_bla_get_backbone_gw β€” finds or creates a backbone gateway 🫢


🌸 SYNOPSIS 🌸

struct batadv_bla_backbone_gw * batadv_bla_get_backbone_gw (struct
batadv_priv *bat_priv , const u8 *orig , unsigned short vid , bool
own_backbone );

that's the whole signature, no cap β€” four args in, a struct batadv_bla_backbone_gw * out πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • bat_priv β€” the bat priv with all the mesh interface information. it's giving "main character data structure", it's got the whole mesh interface tea in it πŸ¦‹
  • orig β€” the mac address of the originator. const u8 * bestie, so don't you dare go writing through it πŸ’…
  • vid β€” the VLAN ID. unsigned short energy ✨
  • own_backbone β€” set if the requested backbone is local. like, is this backbone ours? set the bool, tell the truth πŸ™ˆ

⭐ RETURN ⭐

the (possibly created) backbone gateway β€” or NULL on error 😭

heads up: that "possibly created" is doing a LOT of work in that sentence. this function might genuinely be over here conjuring a backbone gateway out of thin air for you. and if things go sideways you get NULL, so vibe check before you dereference, fr fr πŸ’€

🌈 SEE ALSO 🌈

the kernel file, in all its glory:

  • ./net/batman-adv/bridge_loop_avoidance.c

and the whole extended friend group (they're all (9) pages, we love a consistent squad):

like, that is a roster. the BLA cinematic universe is real and you're in it 🧚


and that's the page bestie!! πŸŽ€ written under the ./net/batman-adv umbrella, dated October 2026, and yes it's batadv_bla_get_backbone_gw(9) all the way down. mwah πŸ’‹ go find (or create) yourself a backbone gateway, you absolute legend πŸ’œ

πŸ“¦ where this page comes from