batadv_choose_backbone_gw(9)
π batadv_choose_backbone_gw(9) β or, the glow-up guide to picking a hash bucket π
okay so bestie, welcome to the Kernel API Manual β¨ this one's a little cutie from the batman-adv world and honestly it's giving "tiny function, big responsibilities." no cap. π¦
πΈ NAME πΈ
batadv_choose_backbone_gw β choose the right bucket for a backbone gateway.
like, literally just picking which bucket a backbone gateway belongs in. that's the whole job. main character energy for a hash function, fr fr π
β¨ SYNOPSIS β¨
u32 batadv_choose_backbone_gw (const void *data , u32 size );
yes that's it. that's the whole signature. short and iconic π
π― ARGUMENTS π―
dataβ the data to hash. this is the thing getting tossed into the bucket-finding machine π«Άsizeβ size of the hash table. yep, it needs to know how many buckets exist so it doesn't invent a new one π
π₯ RETURN π₯
the hash index of the backbone gateway. that's the answer, bestie β one little index, but it's the index π
π¦ SEE ALSO π¦
okay this list is LONG, like, genuinely long, so buckle in π but every single one of them matters, i promise:
- Kernel file
./net/batman-adv/bridge_loop_avoidance.c batadv_choose_claim(9)batadv_compare_backbone_gw(9)batadv_compare_claim(9)batadv_backbone_gw_release(9)batadv_backbone_gw_put(9)batadv_claim_release(9)batadv_claim_put(9)batadv_claim_hash_find(9)batadv_backbone_hash_find(9)batadv_bla_del_backbone_claims(9)batadv_bla_send_claim(9)batadv_bla_loopdetect_report(9)batadv_bla_get_backbone_gw(9)batadv_bla_update_own_backbone_gw(9)batadv_bla_answer_request(9)batadv_bla_send_request(9)batadv_bla_send_announce(9)batadv_bla_add_claim(9)batadv_bla_claim_get_backbone_gw(9)batadv_bla_del_claim(9)batadv_handle_announce(9)batadv_handle_request(9)batadv_handle_unclaim(9)batadv_handle_claim(9)batadv_check_claim_group(9)batadv_bla_process_claim(9)batadv_bla_purge_backbone_gw(9)batadv_bla_purge_claims(9)batadv_bla_update_orig_address(9)batadv_bla_send_loopdetect(9)batadv_bla_status_update(9)batadv_bla_periodic_work(9)batadv_bla_init(9)batadv_bla_check_duplist(9)batadv_bla_check_ucast_duplist(9)batadv_bla_check_bcast_duplist(9)batadv_bla_is_backbone_gw_orig(9)batadv_bla_is_backbone_gw(9)batadv_bla_free(9)batadv_bla_loopdetect_check(9)batadv_bla_rx(9)batadv_bla_tx(9)batadv_bla_claim_dump_entry(9)batadv_bla_claim_dump_bucket(9)batadv_bla_claim_dump(9)batadv_bla_backbone_dump_entry(9)batadv_bla_backbone_dump_bucket(9)batadv_bla_backbone_dump(9)batadv_bla_check_claim(9)
bestie i need you to know this whole thing lives under ./net/batman-adv and the docs are stamped October 2026 β so yeah, go read it, but like, read it ahead of time π
okay that's the whole page!! you understood it, i'm so proud of you, we ate and left absolutely no crumbs ππ§ββοΈπ periodt.
π¦ 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