ENUM BATADV_MESH_STATE(9)
π enum batadv_mesh_state(9)
okay so bestie, this is the enum batadv_mesh_state(9) page from the Kernel API Manual, and it's genuinely so simple it's iconic. It's literally just the vibe check for a mesh interface β like, what state is it in right now? That's it. That's the whole page. β¨
π¦ NAME π¦
enum batadv_mesh_state β the State of a mesh interface, no cap π
πΈ SYNOPSIS πΈ
enum batadv_mesh_state {
BATADV_MESH_INACTIVE ,
BATADV_MESH_ACTIVE ,
BATADV_MESH_DEACTIVATING
};
Three constants, three moods, one enum. The way that curly brace got its own blank line before the closing oneβ¦ main character energy fr fr π
β Constants β
BATADV_MESH_INACTIVEβ mesh interface is not yet running. it's giving "still getting ready", not yet up, we love a slow morning routine π«ΆBATADV_MESH_ACTIVEβ interface is up and running. slay, this is the good one, the interface is literally thriving π₯BATADV_MESH_DEACTIVATINGβ interface is getting shut down. okay it's leaving, it's wrapping up, say your goodbyes π
π SEE ALSO π
Kernel file ./net/batman-adv/main.h, plus the whole friend group:
BATADV_TP_MAX_NUM(9)enum batadv_uev_action(9)enum batadv_uev_type(9)batadv_print_vid(9)batadv_compare_eth(9)batadv_has_timed_out(9)batadv_atomic_dec_not_zero(9)batadv_smallest_signed_int(9)batadv_seq_before(9)batadv_seq_after(9)batadv_add_counter(9)batadv_inc_counter(9)BATADV_SKB_CB(9)
iykyk, that's the full squad, go read them next π§π
lowkey a reminder: these constants are the only states, so don't go inventing your own, bestie. use the enum. periodt.
and that's the page!! π source is ./net/batman-adv, dated October 2026 β mwah, kisses to whoever maintains this, it's giving clean code and I'm obsessed ππ
π¦ 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