rtrs_clt_change_state(9)
β¨ rtrs_clt_change_state(9) β¨
okay so this is a page straight out of the Kernel API Manual and it's literally about flipping a session's state through the session state machine π¦. it's giving tiny function, big responsibility, and honestly? we love her for it π
πΈ SYNOPSIS πΈ
bool rtrs_clt_change_state (struct rtrs_clt_path *clt_path , enum
rtrs_clt_state new_state );
that's it, that's the whole vibe π
π ARGUMENTS π
clt_pathβ the client path you're changing the state of. like, this is the thing getting its glow-up π₯new_stateβ the state you're changing it to. the destination. the final form. the main character energy β¨
π«Ά DESCRIPTION π«Ά
so bestie, here's what happens: it returns true if the session's state actually gets changed to the new state, otherwise it returns false π (yes, that's the whole description, no cap).
Locks: the state_wq lock must be held π β like, do NOT come in here unlocked, that's not the move, fr fr π
π SEE ALSO π
kernel file: ./drivers/infiniband/ulp/rtrs/rtrs-clt.c β
and the whole friend group, in this exact order:
rtrs_clt_get_permit(9)rtrs_clt_put_permit(9)rtrs_permit_to_clt_con(9)get_next_path_rr(9)get_next_path_min_inflight(9)get_next_path_min_latency(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)
and that's a wrap, bestie ππ this iconic little page lives at ./drivers/infiniband/ulp/rtrs and the version on deck is dated October 2026 β go forth, hold that state_wq lock, and slay π§ββοΈπ
π¦ 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