is_valid_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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


that’s the whole page, bestie 🫢 source/version: ./drivers/block/drbd Β· date: October 2026 Β· page: is_valid_state(9) πŸ’–

πŸ“¦ where this page comes from