is_valid_state(9)
π is_valid_state(9) β Kernel API Manual π
okay so bestie, welcome to the is_valid_state(9) page from the Kernel API Manual. Itβs short, itβs sweet, and itβs giving βtiny function, very important vibe check.β Letβs go β¨
πΈ NAME πΈ
is_valid_state β returns an SS_ error code if ns is not valid. periodt π
β¨ SYNOPSIS β¨
enum drbd_state_rv is_valid_state (struct drbd_device *device , union
drbd_state ns );
Thatβs the function signature, verbatim β no edits, no remix π
π ARGUMENTS π
deviceβ DRBD device. πnsβ state to consider. π¦
π¦ SEE ALSO π¦
Kernel file ./drivers/block/drbd/drbd_state.c β and the rest of the squad:
cl_wide_st_chg(9)drbd_force_state(9)drbd_req_state(9)_drbd_request_state(9)is_valid_soft_transition(9)is_valid_transition(9)sanitize_state(9)_drbd_set_state(9)after_state_ch(9)
thatβs the whole page, bestie π«Ά source/version: ./drivers/block/drbd Β· date: October 2026 Β· page: is_valid_state(9) π
π¦ 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