is_valid_soft_transition(9)
π is_valid_soft_transition(9) β a Kernel API Manual moment β¨
okay so bestie, welcome to the Kernel API Manual, where we check whether DRBD is emotionally available for a state change π like, is this transition valid or is it giving "absolutely not"? Let's get into it π¦
πΈ NAME πΈ
is_valid_soft_transition β returns an SS_ error code if the state transition is not possible π
this function is literally the bouncer at the club: it limits state transitions that may be declined by DRBD. i.e. user requests (aka soft transitions) π«Ά so like, the soft asks, not the "do it anyway" ones, ykwim? iykyk β¨
β SYNOPSIS β
enum drbd_state_rv is_valid_soft_transition (union drbd_state os , union drbd_state ns , struct drbd_connection *connection );
that's the whole vibe check right there π₯ you hand it an old state, a new state, and a connection, and it tells you whether the glow-up is legal π
π ARGUMENTS π
osβ old state. like, the current lewk πnsβ new state. the fit you're tryna switch into πconnectionβ DRBD connection. the situationship linking everything together π«Ά
π SEE ALSO π
kernel file ./drivers/block/drbd/drbd_state.c β that's the source of truth, bestie, go read it πβ¨
and the whole friend group:
cl_wide_st_chg(9)drbd_force_state(9)drbd_req_state(9)_drbd_request_state(9)is_valid_state(9)is_valid_transition(9)sanitize_state(9)_drbd_set_state(9)after_state_ch(9)
like, they all ate, honestly π
ngl this one's short but it's iconic β no cap, every one of those functions is part of the same drbd_state.c lore π§
and that's the page, bestie!! this was is_valid_soft_transition(9) from the Kernel API Manual, brought to you by ./drivers/block/drbd and dated October 2026 π mwah, go slay your state transitions ππ
π¦ 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