batadv_is_valid_iface(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_is_valid_iface(9) β€” like, the Kernel API Manual page, bestie

okay so this is batadv_is_valid_iface, straight out of the Kernel API Manual, and it's basically the bouncer at the club door of your batman-adv mesh πŸŽ€ she looks at a net_device and decides if it's allowed in as a hard interface. no cap, that's the whole job. let's get into it ✨


✨ NAME ✨

batadv_is_valid_iface β€” checks whether a net_device can actually be used as a hard interface 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

bool batadv_is_valid_iface (const struct net_device *net_dev );

🌸 ARGUMENTS 🌸

  • net_dev β€” the net_device we're putting through the vibe check πŸ‘€ that's the one being checked, mwah.

πŸ’– DESCRIPTION πŸ’–

So here's the tea β˜• this function is gonna refuse β€” like, hard no, not today β€” any of the following:

  • loopback devices πŸ™…β€β™€οΈ
  • non-Ethernet devices πŸ™…β€β™€οΈ
  • devices with a non-Ethernet address length πŸ™…β€β™€οΈ
  • and literally any device that's already part of a batman-adv mesh interface stack πŸ™…β€β™€οΈ

like if it's already in the stack, bestie, it's taken. we don't do that here πŸ’€


πŸ‘‘ RETURN πŸ‘‘

  • true β€” congrats babes, net_dev can be used as a hard interface πŸ’–βœ¨
  • false β€” nope, not valid, better luck next time 😭

🌈 SEE ALSO 🌈

Kernel file ./net/batman-adv/hard-interface.c β€” iykyk, that's where she lives 🏠


ok that's the whole page, go be iconic with your hard interfaces πŸ’…

anyway that's a wrap, besties 🫢 this one's from the source tree at ./net/batman-adv, dated October 2026, and it's the batadv_is_valid_iface(9) page β€” slay, bye πŸ’œ

πŸ“¦ where this page comes from