mesh_path_fix_nexthop(9)
okay bestie, welcome to the mesh_path_fix_nexthop(9) page from the Kernel API Manual β it's short, it's specific, and it's lowkey iconic for doing exactly one thing. Let's go π«Ά
πΈ NAME πΈ
mesh_path_fix_nexthop β force a specific next hop for a mesh path. That's the whole vibe π
β¨ SYNOPSIS β¨
void mesh_path_fix_nexthop (struct mesh_path *mpath , struct sta_info *next_hop );
π ARGUMENTS π
mpathβ the mesh path to modify. This is the path you're changing, no cap.next_hopβ the next hop to force. You're literally forcing this one to be the next hop, periodt.
π¦ DESCRIPTION π¦
Locking: this function must be called holding mpath->state_lock
Okay so the locking note is the whole entire moment here: this function must be called holding mpath->state_lock. That's not a suggestion, bestie β it's the rule. Hold the lock, then do the thing. π
π SEE ALSO π
Kernel file ./net/mac80211/mesh_pathtbl.c is the source location mentioned here. Also these cuties:
mesh_path_assign_nexthop(9)mesh_path_move_to_queue(9)mesh_path_lookup(9)mesh_path_lookup_by_idx(9)mpp_path_lookup_by_idx(9)mesh_path_add_gate(9)mesh_gate_del(9)mesh_gate_num(9)mesh_path_add(9)mesh_plink_broken(9)mesh_path_flush_by_nexthop(9)mesh_path_flush_by_iface(9)table_path_del(9)mesh_path_del(9)mesh_path_tx_pending(9)mesh_path_send_to_gates(9)mesh_path_discard_frame(9)mesh_path_flush_pending(9)
That's the whole page, bestie. Cute little sign-off: source ./net/mac80211, date October 2026, and the header is mesh_path_fix_nexthop(9) πβ¨
π¦ 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