batadv_wifi...evice_insert(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

batadv_wifi_net_device_insert β€” bestie, this one saves the info about a wifi net_device πŸ’–

So like, the manual page we're reading is batadv_wifi_net_device_insert(9), from the Kernel API Manual, and it's basically the function that tucks away what it knows about a wireless network device. Iconic little record-keeper behavior, honestly.


✨ SYNOPSIS ✨

int batadv_wifi_net_device_insert (struct net_device *net_dev , u32
wifi_flags );

πŸ’… ARGUMENTS πŸ’…

  • net_dev β€” the net_device you're adding to batadv_wifi_net_devices. That's the one going in the list, no cap 🫢
  • wifi_flags β€” the already-extracted batadv_hard_iface_wifi_flags of a net_device. It got pulled out earlier, you're just handing it over.

πŸŽ€ RETURN πŸŽ€

  • 0 on success ✨
  • a negative value on error 😭 (that's it, that's the vibe)
Heads up bestie: positive numbers are not part of the deal here β€” success is 0, failure is negative. Keep that mental note πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

The kernel file lives at ./net/batman-adv/hard-interface.c, and it's surrounded by the whole squad of related functions β€” go read these if you want the full lore, iykyk πŸ‘‘


And that's the whole page, bestie! 🧚 This one came from ./net/batman-adv, dated October 2026, and it's filed under batadv_wifi_net_device_insert(9) β€” slay πŸ’…βœ¨

πŸ“¦ where this page comes from