rtrs_clt_change_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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:


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