batadv_exit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

okay so you're looking at batadv_exit(9) from the Kernel API Manual, and honestly? she's the goodbye-girl of the batman-adv module. short page, big job. let's get into it πŸŽ€


✨ NAME ✨

batadv_exit β€” the batman-adv module exit function. yes, THE exit function. the one who closes the door when the party's over. πŸšͺπŸ’«


✨ SYNOPSIS ✨

void batadv_exit (void );

that's it. that's the whole signature. no cap. 🫢


✨ ARGUMENTS ✨

  • void β€” no arguments. literally zero. she takes nothing, she gives everything. πŸ’…

✨ DESCRIPTION ✨

okay so what does she actually do? two things, and both matter:

  • Unregister the netdevice notifier β€” she takes that notifier off the list, no more callbacks, we're done here πŸ“΄
  • Tear down all global state allocated by batadv_init β€” everything batadv_init set up, she dismantles. the full cleanup. the anti-batadv_init. πŸ”₯
ngl bestie, this is teardown code β€” she's undoing global state, so this is not the vibe to be calling randomly mid-operation πŸ™ˆ

✨ SEE ALSO ✨

kernel file ./net/batman-adv/main.c plus the whole friend group:

like a whole group chat of functions and she's the one who logs off first πŸ˜­πŸ‘‘


sourced from ./net/batman-adv, dated October 2026, and filed under batadv_exit(9) β€” mwah, stay clean, stay torn down πŸ’–πŸŒ™

πŸ“¦ where this page comes from