get_next_path_min_latency(9)
β¨ get_next_path_min_latency(9) β¨
okay so bestie, welcome to the get_next_path_min_latency(9) page β it's part of the Kernel API Manual and it's genuinely such a vibe once you get it, i promise π«Ά
π NAME π
get_next_path_min_latency β returns the path with minimal latency. literally what it says on the tin, no cap β¨
π¦ SYNOPSIS π¦
struct rtrs_clt_path * get_next_path_min_latency (struct path_it *it );
π ARGUMENTS π
itβ the path pointer, that's it, that's the whole argument π«Ά
πΈ RETURN πΈ
it hands you back a path with the lowest latency β or NULL if all the paths are tried π
π DESCRIPTION π
okay so first things first, the locking situation, do NOT skip this:
Locks: rcu_read_lock must be hold. like, must. this is not a suggestion, bestie π
this one is related to MP_POLICY_MIN_LATENCY β iykyk π₯
here's the iconic part: this DOES skip an already-tried path. there's a skip-list that skips a path if that path has been tried but failed, which is honestly so real of it π
so the way it works is it'll try the minimum latency path, then the second minimum latency path, and so on and so on until it's done. and finally it returns NULL if all the paths are tried π
and because of that, the caller MUST check whether the returned path is NULL and trigger the IO error. like, MUST must. not optional, not "i'll do it later", do it π¨
π SEE ALSO π
the kernel file that lives at:
./drivers/infiniband/ulp/rtrs/rtrs-clt.c
and all of these absolute icons:
rtrs_clt_get_permit(9)rtrs_clt_put_permit(9)rtrs_permit_to_clt_con(9)rtrs_clt_change_state(9)get_next_path_rr(9)get_next_path_min_inflight(9)rtrs_clt_init_req(9)rtrs_clt_failover_req(9)init_path(9)rtrs_clt_open(9)rtrs_clt_close(9)rtrs_clt_request(9)rtrs_clt_query(9)
that's the whole page, slay π
this one lives in ./drivers/infiniband/ulp/rtrs and it's dated October 2026 β go forth and check for NULL, bestie, i'm obsessed with you for reading all the way down here πππ¦β¨
π¦ 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