batadv_iv_ogm_neigh_diff(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so welcome to the batadv_iv_ogm_neigh_diff(9) page from the Kernel API Manual, bestie β€” she's here to calculate tq difference of two neighbors, and honestly? iconic. ✨

✨ SYNOPSIS ✨

bool batadv_iv_ogm_neigh_diff (struct batadv_neigh_node *neigh1 , struct
batadv_hard_iface *if_outgoing1 , struct batadv_neigh_node *neigh2 ,
struct batadv_hard_iface *if_outgoing2 , int *diff );

yes bestie, that's a bool return and a whole lineup of arguments β€” stay with me πŸ’…

πŸŽ€ ARGUMENTS πŸŽ€

  • neigh1 β€” the first neighbor object of the comparison.
  • if_outgoing1 β€” outgoing interface for the first neighbor.
  • neigh2 β€” the second neighbor object of the comparison.
  • if_outgoing2 β€” outgoing interface for the second neighbor.
  • diff β€” pointer to integer receiving the calculated difference.

πŸ¦‹ DESCRIPTION πŸ¦‹

Here's the important vibe check: the content of *diff is only valid when this function returns true. 🫢

When it is valid, *diff is less, equal to, or greater than 0 if the metric via neigh1 is lower, the same as, or higher than the metric via neigh2. That's the whole tea. β˜•βœ¨

🌈 RETURN 🌈

true when the difference could be calculated, false otherwise. That's it, that's the return, no cap. πŸ’…

πŸ‘‘ SEE ALSO πŸ‘‘

the whole squad, fr fr:

byeeeee bestie 🫢 this cutie's source/version is ./net/batman-adv, her date is October 2026, and she's the batadv_iv_ogm_neigh_diff(9) page β€” mwah πŸ’‹

πŸ“¦ where this page comes from