mesh_path_assign_nexthop(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« mesh_path_assign_nexthop(9) πŸ’«

okay so this is a page straight out of the Kernel API Manual β€” mesh_path_assign_nexthop(9), bestie. yes it's a mouthful, no we're not renaming it, it's iconic as is πŸŽ€


✨ NAME ✨

mesh_path_assign_nexthop β€” update mesh path next hop

like literally, it's the glow-up function for a mesh path's next hop πŸ’…


🌸 SYNOPSIS 🌸

void mesh_path_assign_nexthop (struct mesh_path *mpath , struct sta_info
*sta );

ngl, void in, vibes out. no return value, she just does the thing πŸ¦‹


🧚 ARGUMENTS 🧚

  • mpath β€” the mesh path you're updating, aka the main character of this whole operation πŸ‘‘
  • sta β€” the next hop you're assigning to it, the one getting the crown handed over 🫢

πŸ’– DESCRIPTION πŸ’–

Locking: mpath->state_lock must be held when calling this function.

that's the whole description, and it's not a suggestion β€” it's giving hard requirement, fr fr. hold that lock or don't call her at all, no cap πŸ˜­πŸ”’


⭐ SEE ALSO ⭐

Kernel file ./net/mac80211/mesh_pathtbl.c and honestly her entire friend group:

the whole squad, all together, iykyk πŸ’œ


lowkey reminder: this page lives in ./net/mac80211, dated October 2026, and she answers to the name mesh_path_assign_nexthop(9). slay, go hold that lock bestie πŸ’…βœ¨πŸŒˆ
πŸ“¦ where this page comes from