batadv_get_real_netdev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_get_real_netdev(9) β€” kernel API manual, section 9, bestie

okay so this is a kernel API manual page for batadv_get_real_netdev, living in section 9 of the manual, and honestly? it's short but it's important, so let's go 🫢


✨ NAME ✨

batadv_get_real_netdev β€” the function that checks whether the net_device struct you handed it is a virtual interface sitting on top of another, "real" interface πŸ¦‹

like, is your netdev wearing a costume? this function finds out. no cap.


🌸 SYNOPSIS 🌸

struct net_device * batadv_get_real_netdev (struct net_device *net_device );

one argument in, one struct net_device * out. cute, clean, iconic πŸ”₯


πŸŽ€ ARGUMENTS πŸŽ€

  • net_device β€” the device to check πŸ’– literally just hand it the device you're curious about and let it do its thing.

πŸ‘‘ RETURN πŸ‘‘

it gives you back the 'real' net device, or the original net device β€” and NULL in case of an error 😭

so: real one, or the same one you gave it, or NULL if something went sideways. three possible vibes, one return value. periodt.

ngl, always check for that NULL before you go dereferencing anything, bestie πŸ’€

🌈 SEE ALSO 🌈

this is the part where it name-drops everyone β€” and we mean everyone. the whole friend group shows up:

that's the whole roster, no skips, we listed every single one πŸ’œ iykyk


and that's the page!! ✨ this one came from ./net/batman-adv and it's dated October 2026 β€” so like, from the future? kinda iconic of it honestly πŸ§šβ€β™€οΈ go forth and check your netdevs, bestie πŸ’…πŸ“

πŸ“¦ where this page comes from