after_state_ch(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

after_state_ch(9) πŸ’…

okay so this is the after_state_ch(9) page from the Kernel API Manual, and it's giving β€œperform after state change actions that may sleep” 😴. Yes bestie, these actions may sleep β€” noted, important, no cap.

✨ NAME ✨

after_state_ch β€” perform after state change actions that may sleep. That’s the whole vibe: after-state-change actions, and sleeping is allowed πŸ’€.

πŸ› οΈ SYNOPSIS πŸ› οΈ

void after_state_ch (struct drbd_device *device , union drbd_state os , union drbd_state ns , enum chg_state_flags flags , struct drbd_state_change *state_change );

πŸŽ€ ARGUMENTS πŸŽ€

  • device β€” DRBD device. literally the device we’re working with πŸ’–
  • os β€” old state. the before pic πŸ“Έ
  • ns β€” new state. the glow-up ✨
  • flags β€” Flags. yes, just flags 🚩
  • state_change β€” state change to broadcast. put it on the group chat πŸ“£

πŸ‘€ SEE ALSO πŸ‘€

Kernel file ./drivers/block/drbd/drbd_state.c and the whole friend group:


bye bestie 🫢 this page is from ./drivers/block/drbd and it’s dated October 2026 🌈

πŸ“¦ where this page comes from