batadv_mutual_parents(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– batadv_mutual_parents(9) πŸ’–

okay bestie so this is a page from the Kernel API Manual and honestly? it's a little guy with a big job. it's literally called batadv_mutual_parents and no cap, that name is doing exactly what it says on the tin. let's get into it 🫢


✨ NAME ✨

batadv_mutual_parents β€” check if two devices are each others parent πŸ‘€

like... are y'all each other's parent? because that's a vibe and we need to know.


🌸 SYNOPSIS 🌸

bool batadv_mutual_parents (const struct net_device *dev1 , struct net
*net1 , const struct net_device *dev2 , struct net *net2 );

it returns a bool, it takes four things, and yes the line break in the middle of the signature is just how the man page formatted it β€” we do not judge, we reproduce πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • dev1 β€” the 1st net dev 🌱 like, the first device in the duo
  • net1 β€” the 1st device's netns 🫧 its whole networking namespace situation
  • dev2 β€” the 2nd net dev 🌷 the other half of the pairing
  • net2 β€” the 2nd device's netns 🧚 and its namespace bestie

four arguments, all accounted for, nothing skipped, we love a complete cast ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the lore: veth devices come in pairs and each is the parent of the other! 😭

not me getting emotional over virtual ethernet interfaces. veth pairs are literally mutually parenting each other. it's giving found family. it's giving we are each other's parent and also each other's child simultaneously. the way that's just how veth works πŸ”₯

so this function is here to check if the two devices you handed it are doing exactly that β€” the mutual parent thing. iconic behavior, honestly.


⭐ RETURN ⭐

it returns true if the devices are each others parent, otherwise false πŸ’–

that's it. that's the whole vibe check. true = mutual parents, false = nope, not doing that.


🌈 SEE ALSO 🌈

this section is LONG bestie, hydrate before reading. all from the Kernel file ./net/batman-adv/hard-interface.c πŸ’€

thirty-something functions, all present and correct, no crumbs left behind πŸ“


πŸ’€ gentle heads up: every single one of those references above matters β€” if you're chasing down how batman-adv handles hard interfaces, the wifi flags, the netdevs, or the events, they're all listed up there. don't come for me if you skip one, i literally typed them all out for you.

and that's the page!! ✨ this beauty ships from ./net/batman-adv and the date on it is October 2026 β€” so yes, it's from the future, and it's slaying there too πŸ’…πŸ‘‘ mwah, go check your veth pairs, they're probably each other's parents, periodt πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from