vdo_start_draining(9)
β¨ 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β thevdo_admin_initiator_fnto call if the operation may begin; may beNULL. yes, it can beNULL, 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:
get_next_state(9)vdo_finish_operation(9)begin_operation(9)start_operation(9)check_code(9)assert_vdo_drain_operation(9)vdo_finish_draining(9)vdo_finish_draining_with_result(9)vdo_assert_load_operation(9)vdo_start_loading(9)vdo_finish_loading(9)vdo_finish_loading_with_result(9)assert_vdo_resume_operation(9)vdo_start_resuming(9)vdo_finish_resuming(9)vdo_finish_resuming_with_result(9)vdo_resume_if_quiescent(9)vdo_start_operation(9)vdo_start_operation_with_waiter(9)
mwah π source/version: ./drivers/md/dm-vdo; date: October 2026 β go be iconic in the kernel, bestie π«Ά
π¦ 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