batadv_init(9)
β¨ batadv_init(9) β like, the Kernel API Manual one, bestie β¨
okay so real talk, this page lives in the Kernel API Manual and it's literally the birth certificate for batadv_init. Let's get into it π
π NAME π
batadv_init β the batman-adv module init function. yes, that one. the "hi bestie, we're loading now" of the whole module π¦
πΈ SYNOPSIS πΈ
int batadv_init (void );
that's it. that's the whole vibe. no args, no drama π
π ARGUMENTS π
voidβ no arguments. nothing. nada. she takes zero input, she's booked and busy π
π§ DESCRIPTION π§
okay so when this bad boy gets called, here's what actually goes down π
- it initialises the global state used by all mesh interfaces β like, every single one of them, she's setting up the shared foundation π
- it registers the netdevice notifier β
- it registers the netlink/rtnl family π₯
that's the entire to-do list, and she ate. no cap. π«Ά
π RETURN π
0β success, slay, we're so back β- negative error number β in case of failure π so like, if the number's negative, something went wrong and you should probably pay attention
π¦ SEE ALSO π¦
the kernel file lives at ./net/batman-adv/main.c β go read her, she's iconic π
and then the whole friend group π―ββοΈ:
batadv_exit(9)batadv_mesh_init(9)batadv_mesh_free(9)batadv_is_my_mac(9)batadv_max_header_len(9)batadv_skb_set_priority(9)batadv_recv_unhandled_packet(9)batadv_batman_skb_recv(9)batadv_recv_handler_init(9)batadv_recv_handler_register(9)batadv_recv_handler_unregister(9)batadv_get_vid(9)batadv_vlan_ap_isola_get(9)batadv_throw_uevent(9)
bestie if you're reading all of these in one sitting, drink some water. i'm serious. π§
mwah, that's the page π this one ships from ./net/batman-adv, dated October 2026, and it's literally titled batadv_init(9) β catch you in the next manpage, ily, bye πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms