mesh_path_error_tx(9)
π mesh_path_error_tx(9) β like, the PERR-sending era π
okay so bestie, welcome to the Kernel API Manual β¨ this one lives in the mesh_path_error_tx(9) cinematic universe and it's literally about yeeting a PERR mesh management frame out into the world π¦
πΈ NAME πΈ
mesh_path_error_tx β sends a PERR mesh management frame, no cap π
β¨ SYNOPSIS β¨
int mesh_path_error_tx (struct ieee80211_sub_if_data *sdata , u8 ttl ,
const u8 *target , u32 target_sn , u16 target_rcode , const u8 *ra );
like, that's the whole vibe. one function, six arguments, zero chill π
π«Ά ARGUMENTS π«Ά
sdataβ the local mesh subif. that's the main character right there πttlβ allowed remaining hops. literally how many hops it's still got left in the tank before it's done πββοΈtargetβ the broken destination π the one that's not doing so hottarget_snβ SN of the broken destination. gotta know the number, iykyk π’target_rcodeβ the reason code for this PERR. like the "why are we here" of the whole frame π§raβ node this frame is addressed to, aka who's getting this lil message π
π NOTE π
okay so this is the important bit, don't skip it π
this function may be called with driver locks taken that the driver also acquires in the TX path. and to avoid a deadlock β yes, the scary kind π β we don't transmit the frame directly, we add it to the pending queue instead. that's the whole reason it's like this. periodt. π₯
bestie this is a real deadlock-avoidance thing, not a vibe. do not go transmitting directly. π
β RETURN β
0 on success β¨ that's it, that's the return. slay.
π SEE ALSO π
kernel file ./net/mac80211/mesh_hwmp.c and its whole friend group:
hwmp_route_info_get(9)mesh_queue_preq(9)mesh_path_start_discovery(9)mesh_nexthop_resolve(9)mesh_nexthop_lookup_nolearn(9)mesh_nexthop_lookup(9)
like, go read those too, they're all connected fr fr π¦
and that's the page bestie!! π brought to you by the fine folks over at ./net/mac80211, dated October 2026 β mwah, go forth and send your PERRs safely πβ¨
π¦ 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