batadv_netl...if_from_info(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_netl...if_from_info(9) β€” the Kernel API Manual girlies said "get that hard-iface" ✨

okay so bestie, welcome to batadv_netl...if_from_info(9), straight out of the Kernel API Manual. the full name of the function is batadv_netlink_get_hardif_from_info β€” which is giving "long name, very important job" and honestly? icon. πŸŽ€


✨ NAME ✨

batadv_netlink_get_hardif_from_info β€” grab yourself a hard-iface out of genl attributes. that's the whole vibe. πŸ¦‹


🌸 SYNOPSIS 🌸

struct batadv_hard_iface * batadv_netlink_get_hardif_from_info (struct
batadv_priv *bat_priv , struct net *net , struct genl_info *info );

look at that signature. struct batadv_hard_iface * on the return, three args going in. it's giving "I take this very seriously actually". πŸ’…


πŸ’– ARGUMENTS πŸ’–

  • bat_priv β€” the bat priv, aka the one holding all the mesh interface information. main character data structure fr. πŸ‘‘
  • net β€” the applicable net namespace. know which namespace you're in, bestie, it matters. 🌈
  • info β€” the receiver information. yes it's literally the genl info, ty for asking. 🫢

πŸ”₯ RETURN πŸ”₯

pointer to the hard interface on success β€” and not just any pointer, a pointer with increased refcnt, okay so please remember that and don't leak it 😭

on error? you get an error pointer. no cap, that's it. πŸ’€


πŸ’œ SEE ALSO πŸ’œ

okay this list is long and honestly every single one of these deserves its own moment, so here we go, no skipping, nobody left behind 🧚

like… the whole netlink family reunion and we're all invited πŸŽ‰


okay that's the whole page bestie!! this one lives at ./net/batman-adv, dated October 2026, and it's the batadv_netl...if_from_info(9) entry from the Kernel API Manual. go forth and get your hardif (with increased refcnt!!) πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from