batadv_orig_ifinfo_new(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ batadv_orig_ifinfo_new(9) ✨

okay so this is a page from the Kernel API Manual (the batadv_orig_ifinfo_new one, bestie, keep up πŸ’…) and it's literally just one function doing a vibe check on your orig nodes and then, if the vibe isn't there yet, making the vibe. iconic behavior tbh.


🌸 NAME 🌸

batadv_orig_ifinfo_new β€” search and possibly create an orig_ifinfo object πŸ¦‹

like, it goes looking for one, and if it can't find one it just... builds it. main character energy fr.


✨ SYNOPSIS ✨

struct batadv_orig_ifinfo * batadv_orig_ifinfo_new (struct batadv_orig_node *orig_node , struct batadv_hard_iface *if_outgoing );

πŸŽ€ ARGUMENTS πŸŽ€

  • orig_node β€” the orig node you wanna query, bestie. that's the one you're asking about πŸ‘‘
  • if_outgoing β€” the interface you want the ifinfo for. like, which interface is this info even about 🧚

πŸ’– RETURN πŸ’–

So it returns NULL if things go sideways (failure, no cap 😭) β€” otherwise you get back the orig_ifinfo object for the if_outgoing interface. And here's the cute part: if that object didn't exist yet, it gets created and added to the list for you. it's giving "i got you" 🫢


🌈 DESCRIPTION 🌈

The object comes back to you with its refcounter increased by 1. literally one (1) more ref. don't forget to give it back later, iykyk πŸ’€


⭐ SEE ALSO ⭐

The kernel file this lives in is ./net/batman-adv/originator.c β€” that's home base 🏠 and the whole squad is here:


ngl if you're reading the originator code you should probably read the release/purge ones too β€” that's where the refcounting lore lives πŸ™ˆ

okay that's the whole page, love u, go read some kernel code πŸ’œ β€” it's from ./net/batman-adv, dated October 2026, and the page itself is batadv_orig_ifinfo_new(9). slay, bye πŸ‘‹βœ¨

πŸ“¦ where this page comes from