vdo_start_draining(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, this is vdo_start_draining(9) from the Kernel API Manual β€” and it's literally the function that initiates a drain operation if the current state permits it. no cap, the state has to say yes first πŸ’…


🌸 SYNOPSIS 🌸

bool vdo_start_draining (struct admin_state *state , const struct
       admin_state_code *operation , struct vdo_completion *waiter ,
       vdo_admin_initiator_fn initiator );

πŸŽ€ ARGUMENTS πŸŽ€

  • state β€” the current admin state. this is the vibe check for whether the drain can even start.
  • operation β€” the type of drain to initiate. pick your drain era, bestie.
  • waiter β€” the completion to notify when the drain is complete. it's the bestie who gets the β€œwe're done” ping 🫢
  • initiator β€” the vdo_admin_initiator_fn to call if the operation may begin; may be NULL. yes, it can be NULL, so don't panic.

πŸ”₯ RETURN πŸ”₯

true if the drain was initiated; if not, the waiter will be notified. that's the return tea, and that's the whole sentence β˜•


🌈 SEE ALSO 🌈

Kernel file ./drivers/md/dm-vdo/admin-state.c, plus the whole linked-up crew:

mwah πŸ’‹ source/version: ./drivers/md/dm-vdo; date: October 2026 β€” go be iconic in the kernel, bestie 🫢

πŸ“¦ where this page comes from