batadv_param_set_ra(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 the routing_algo module 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 ⭐

  • 0 on 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:


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