batadv_netlink_get_hardif(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, real talk: this function is literally the moment when you need to pull a hard interface out of a netlink callback. yes, that specific vibe. it retrieves hard interface from netlink callback, no cap, and it does it with main character energy 😌🫢


✨ SYNOPSIS ✨

struct batadv_hard_iface * batadv_netlink_get_hardif (struct batadv_priv
*bat_priv , struct netlink_callback *cb );

like, look at that signature. it's giving "I know exactly what I'm doing" πŸ’…


🌸 ARGUMENTS 🌸

  • bat_priv β€” the bat priv with all the mesh interface information. yes she contains multitudes, all the mesh deets are in there πŸŽ€
  • cb β€” callback structure containing arguments. that's where the callback args live, periodt πŸ¦‹

πŸ”₯ RETURN πŸ”₯

  • on success β€” pointer to hard interface, and bestie note the (with increased refcnt) part because refcounts are serious business πŸ’–
  • on error β€” error pointer. so if things go sideways you get an error pointer, not a cute moment 😭

πŸ‘‘ SEE ALSO πŸ‘‘

okay so the squad is large, buckle up buttercup 🌈


and that's the whole page bestie, hope it slayed πŸ’…βœ¨

shoutout to the source ./net/batman-adv and the date October 2026, and ofc batadv_netlink_get_hardif(9) herself β€” iconic behavior only πŸ«ΆπŸŒ™πŸ’œ

πŸ“¦ where this page comes from