is_valid_soft_transition(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

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