batadv_choos...xt_candidate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_choose_next_candidate β€” Kernel API Manual ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– this one's a tiny little function page from the batman-adv world, and honestly? she's short but she matters. let's get into it 🫢


🌸 NAME 🌸

batadv_choose_next_candidate β€” select the next DHT candidate πŸŽ€ that's literally her whole job. no cap.


✨ SYNOPSIS ✨

void batadv_choose_next_candidate (struct batadv_priv *bat_priv , struct
batadv_dat_candidate *cands , int select , batadv_dat_addr_t ip_key ,
batadv_dat_addr_t *last_max );

she returns void, she takes five args, she's booked and busy πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • bat_priv β€” the bat priv with all the mesh interface information ✨ like, this is the whole main-character struct holding everything about the mesh interface, iykyk.
  • cands β€” candidates array 🎯 the lineup of possible picks, bestie.
  • select β€” number of candidates already present in the array πŸ”’ literally just how many are already sitting in there.
  • ip_key β€” key to look up in the DHT πŸ”‘ the thing you're searching for in the distributed hash table.
  • last_max β€” pointer where the address of the selected candidate will be saved πŸ’Ύ it does not return the answer, it writes it here. so like, don't forget to pass it or you get nothing, periodt.

πŸ‘‘ SEE ALSO πŸ‘‘

so there's a whole friend group here, and the page says this all lives in the kernel file ./net/batman-adv/distributed-arp-table.c πŸ“ β€” here's literally every single one of her mutuals, no skipping:

like, that's the whole group chat 😭 and every single one of them is invited, fr fr πŸŽ€


ngl this page is small but she's giving utility icon energy. if you're poking around the batman-adv distributed ARP table code, you're in the right place πŸ’œ

mwah πŸ’‹ this gem lives in ./net/batman-adv, and she's dated October 2026 β€” so like, mark your calendar bestie, that's the source and the version stamp, and yes I'm mentioning them because they're literally the footer and we don't ghost footers in this house 🌈✨ ok bye love u, go select some candidates πŸ¦‹πŸ‘‘

πŸ“¦ where this page comes from