batadv_iv_ogm_orig_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_iv_ogm_orig_get(9) πŸ’…

okay so welcome to the Kernel API Manual, bestie β€” this is the page for batadv_iv_ogm_orig_get(9), and it’s literally your originator-fetching bestie. No cap, it’s a little lookup-or-create situation, and all the details are right here. 🫢

πŸ’– NAME πŸ’–

batadv_iv_ogm_orig_get β€” retrieve or create (if does not exist) an originator. It’s giving β€œhey, do I already know this originator? if not, lemme make one.” ✨

🌸 SYNOPSIS 🌸

struct batadv_orig_node * batadv_iv_ogm_orig_get (struct batadv_priv
*bat_priv , const u8 *addr );

πŸŽ€ ARGUMENTS πŸŽ€

  • bat_priv β€” the bat priv with all the mesh interface information.
  • addr β€” mac address of the originator.

✨ RETURN ✨

You get back the originator object corresponding to the passed mac address, or NULL on failure. If the object does not exist, it is created and initialised. Literally lookup first, create-and-init if it’s not there β€” slay. πŸ¦‹

πŸ¦‹ SEE ALSO πŸ¦‹

If you’re doing a lore-deep dive, start with the kernel file ./net/batman-adv/bat_iv_ogm.c, and then the whole squad is:

xoxo, from source/version ./net/batman-adv β€” October 2026 πŸ’œ

πŸ“¦ where this page comes from