batadv_param_set_ra(9)
β¨ batadv_param_set_ra(9) β¨
okay so bestie, welcome to the Kernel API Manual β this one's a little function from batman-adv and it's literally the bouncer at the club door for your routing algorithm setting π
π NAME π
batadv_param_set_ra β validate and store the routing_algo module parameter. that's it, that's the whole job, and it does it flawlessly π
πΈ SYNOPSIS πΈ
int batadv_param_set_ra (const char *val , const struct kernel_param *kp
);
like, it takes two things and gives you back an int. classic. no notes. β¨
π¦ ARGUMENTS π¦
valβ the new value for therouting_algomodule parameter. this is the main character of the function ngl, it's the thing you actually wanna set π«Άkpβ the kernel parameter description, and it's the one that actually stores the value. lowkey the backbone of the operation π
π DESCRIPTION π
so here's the vibe check: it checks that the algorithm you're asking for is actually known to batman-adv β like, does this algorithm even go here?? and if it does, it stores the name as the new default routing algorithm. slay. π
that's the whole flow: validate first, then store. no cap, it does not skip the validation step, and honestly? iconic behaviour. π
β RETURN β
0on success π- a negative error number in case of failure π (yes, negative β that's the convention, don't come for me)
π SEE ALSO π
Kernel file ./net/batman-adv/bat_algo.c β go read it, it's giving lore:
batadv_algo_init(9)batadv_algo_get(9)batadv_algo_register(9)batadv_algo_select(9)batadv_algo_dump_entry(9)batadv_algo_dump(9)
annnnd that's the page bestie π this one lives in ./net/batman-adv, dated October 2026, and it's batadv_param_set_ra(9) all the way down. 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