batadv_netl...if_from_info(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, we're in the Kernel API Manual today and honestly? This one's a little baddie. It's the batadv_netlink_get_meshif_from_info page and it does exactly one thing but it does it iconically.


πŸŽ€ NAME πŸŽ€

batadv_netlink_get_meshif_from_info β€” Get mesh-iface from genl attributes ✨

(yeah that's it. that's the whole job. and she ate.)


🌸 SYNOPSIS 🌸

struct net_device * batadv_netlink_get_meshif_from_info (struct net *net
, struct genl_info *info );

literally just: you hand her a net and an info, she hands you back a struct net_device *. no drama. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • net β€” the applicable net namespace 🫢 (like, which world are we living in rn)
  • info β€” receiver information πŸ“¬ (the genl attributes, the lore, the context)

πŸ‘‘ RETURN πŸ‘‘

Pointer to mesh interface (with increased refcnt) on success, error pointer on error.

⚠️ okay important bestie: on success you get a refcnt bump, so like… that reference is yours to hold. don't just leave it lying around, that's not the vibe. and on error you get an error pointer β€” check it with IS_ERR()-style thinking, don't dereference it, that would be so embarrassing for everyone involved 😭

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./net/batman-adv/netlink.c plus enum batadv_netlink_multicast_groups(9), enum batadv_genl_ops_flags(9) β€” and honestly the whole friend group, we're listing them all because everyone deserves their moment:

like, the whole batman-adv netlink clique fr fr πŸ§šπŸ’œ


mwah πŸ’‹ that's the page! source: ./net/batman-adv, dated October 2026 β€” go off, king, see you in the kernel tree πŸŒˆβ­πŸŽ€

πŸ“¦ where this page comes from