batadv_netli...from_ifindex(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

batadv_netlink_get_meshif_from_ifindex β€” okay so this is the little guy that gets you the mesh-iface from an ifindex ✨

(this is a section 9 page from the Kernel API Manual, bestie, so yes it's kernel-internal and yes it's iconic)


πŸŽ€ SYNOPSIS πŸŽ€

struct net_device * batadv_netlink_get_meshif_from_ifindex (struct net
*net , int ifindex );

🌸 ARGUMENTS 🌸

  • net β€” the applicable net namespace 🫢 like, the whole namespace vibe this lookup lives in.
  • ifindex β€” index of the mesh interface πŸ’« the number you're handing over so it can find your mesh iface.

πŸ”₯ RETURN πŸ”₯

Pointer to mesh interface (with increased refcnt) on success πŸŽ‰ β€” and an error pointer on error πŸ’€.

Heads up bestie: on success the refcnt is increased, so don't just toss that pointer in the void. That's an accounting situation, fr fr.

🌈 SEE ALSO 🌈

Kernel file ./net/batman-adv/netlink.c, enum

That's the whole netlink friend group btw πŸ‘‘ read them, they ate πŸ’…


✿ and that's the page!! ✿ brought to you by the source/version line ./net/batman-adv, dated October 2026 β€” mwah, go touch some mesh interfaces πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from