batadv_v_ogm_orig_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– batadv_v_ogm_orig_get β€” the kernel API manual, bestie edition πŸ’–

okay so you're reading batadv_v_ogm_orig_get(9) and you're like "what does this even do" β€” don't worry, I gotchu. It's a function from the batman-adv kernel API manual, and honestly? it's giving "hi bestie, let me find your originator node for you." πŸ¦‹


✨ NAME ✨

batadv_v_ogm_orig_get β€” retrieve and possibly create an originator node. lowkey the whole personality of this function is "get it, and if it's not there, make it." slay. πŸ’…


✨ SYNOPSIS ✨

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

like, the vibes of the signature are immaculate. returns a struct batadv_orig_node *, takes a struct batadv_priv *bat_priv and a const u8 *addr. no cap. πŸŽ€


🌸 ARGUMENTS 🌸

  • bat_priv β€” the bat priv with all the mesh interface information. it's literally the main character holding all the mesh iface tea. πŸ‘‘
  • addr β€” the address of the originator. yes, this one. the address. πŸ’Œ

⭐ RETURN ⭐

the orig_node corresponding to the specified address. iconic, honestly. and if such an object does not exist? it is allocated here β€” like, born right there on the spot, main character energy. 😭

heads up bestie: in case of allocation failure it returns NULL. so like, vibe check your return value, fr fr. πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

like, the whole friend group is here. iykyk. 🫢


reminder that this is a kernel function, so please don't call it from userspace and then wonder why everything is on fire πŸ™ˆ

and that's the page, bestie! sourced from ./net/batman-adv, the October 2026 cut of batadv_v_ogm_orig_get(9) β€” go forth and slay your mesh networking, mwah πŸ’œπŸ§šπŸ“

πŸ“¦ where this page comes from