drbd_send_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drbd_send_state(9) πŸ’…

hey bestie, welcome to the Kernel API Manual β€” today’s main character is drbd_send_state(9), and it’s literally all about sending the new state to the peer after a state change. πŸ¦‹


πŸ’– NAME πŸ’–

drbd_send_state β€” after a state change, sends the new state to the peer. periodt. ✨


✨ SYNOPSIS ✨

int drbd_send_state (struct drbd_peer_device *peer_device , union
drbd_state state );

πŸŽ€ ARGUMENTS πŸŽ€

  • peer_device β€” DRBD peer device. 🫢
  • state β€” the state to send; not necessarily the current state. πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here’s the tea: each state change queues an "after_state_ch" work, and that work will eventually send the resulting new state to the peer. πŸ’Œ

if more state changes happen between queuing and processing of the after_state_ch work, we still want to send each intermediary state in the order it occurred. the timeline stays intact, no cap. πŸ•°οΈβœ¨


🌈 SEE ALSO 🌈

Kernel file ./drivers/block/drbd/drbd_main.c, plus these lil icons:


xoxo, your kernel bestie πŸ’– β€” straight from ./drivers/block/drbd, October 2026. πŸŽ€

πŸ“¦ where this page comes from