batadv_v_neigh_cmp(9)
π batadv_v_neigh_cmp(9) π
okay so this page lives in the Kernel API Manual (yes, that's the manual name, we're fancy now β¨) and it's literally about comparing two B.A.T.M.A.N. V neighbours by throughput. bestie, it's giving "who's the better neighbour" energy and honestly we're obsessed π
πΈ NAME πΈ
batadv_v_neigh_cmp β compare two B.A.T.M.A.N. V neighbours by throughput π¦
β¨ SYNOPSIS β¨
int batadv_v_neigh_cmp (struct batadv_neigh_node *neigh1 , struct
batadv_hard_iface *if_outgoing1 , struct batadv_neigh_node *neigh2 ,
struct batadv_hard_iface *if_outgoing2 );
like, that's the whole signature, no cap π«Ά
π ARGUMENTS π
neigh1β the first neighbour we're comparing, main character #1 πif_outgoing1β the outgoing interface to use forneigh1(yes, it gets its own interface, slay)neigh2β the second neighbour in the lineup, main character #2 πif_outgoing2β the outgoing interface to use forneigh2, iconic β¨
ngl the interface pairing matters βneigh1goes withif_outgoing1, andneigh2goes withif_outgoing2. don't mix them up, i'm begging π
β RETURN β
so here's the vibe check result:
- a positive value if
neigh1is better π₯ - a negative value if
neigh2is better π - and 0 if both have equal throughput π€ (a tie, we love a peaceful ending)
π SEE ALSO π
the kernel file is ./net/batman-adv/bat_v.c and honestly the whole friend group is here, fr fr:
batadv_v_iface_activate(9)batadv_v_iface_enable(9)batadv_v_iface_disable(9)batadv_v_primary_iface_set(9)batadv_v_iface_update_mac(9)batadv_v_hardif_neigh_init(9)batadv_v_neigh_dump_neigh(9)batadv_v_neigh_dump_hardif(9)batadv_v_neigh_dump(9)batadv_v_orig_dump_subentry(9)batadv_v_orig_dump_entry(9)batadv_v_orig_dump_bucket(9)batadv_v_orig_dump(9)batadv_v_neigh_is_sob(9)batadv_v_init_sel_class(9)batadv_v_gw_throughput_get(9)batadv_v_gw_get_best_gw_node(9)batadv_v_gw_is_eligible(9)batadv_v_gw_dump_entry(9)batadv_v_gw_dump(9)batadv_v_hardif_init(9)batadv_v_mesh_init(9)batadv_v_mesh_free(9)batadv_v_init(9)batadv_v_deinit(9)
that's the whole page bestie, go forth and compare neighbours responsibly πβ¨π
source path: ./net/batman-adv Β· dated October 2026 Β· mwah, that's a wrap π«Άπ
π¦ 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