vdo_start_o..._with_waiter(9)
π
vdo_start_o..._with_waiter(9) β like, the Kernel API Manual one π
okay so bestie, welcome to the group chat β¨ this is <pink>vdo_start_o..._with_waiter</pink> from the Kernel API Manual, and it's lowkey one of those tiny functions that does exactly one thing and does it iconically. no cap π«Ά
πΈ NAME πΈ
vdo_start_operation_with_waiter β attempt to start an operation π
that's it. that's the whole vibe.
β¨ SYNOPSIS β¨
int vdo_start_operation_with_waiter (struct admin_state *state , const
struct admin_state_code *operation , struct vdo_completion *waiter ,
vdo_admin_initiator_fn initiator );
like, four things go in, one int comes out π slay.
π¦ ARGUMENTS π¦
stateβ the current admin state, fr fr. this is where we're at right now.operationβ the operation we're trying to start. the main character of the whole call, honestly πwaiterβ the completion to notify when the operation completes or when it fails to start. it may beNULLβ she's optional, she's flexible, she contains multitudes πinitiatorβ thevdo_admin_initiator_fnto call if the operation may begin. may beNULLtoo, we love a low-maintenance parameter π
β RETURN β
VDO_SUCCESSβ the operation was started π ate, no crumbsVDO_INVALID_ADMIN_STATEβ nope, it was not π the state said no
π SEE ALSO π
so here's the whole friend group, and yes they're all (9) and yes they all live in the kernel file ./drivers/md/dm-vdo/admin-state.c π
get_next_state(9)vdo_finish_operation(9)begin_operation(9)start_operation(9)check_code(9)assert_vdo_drain_operation(9)vdo_start_draining(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)
like, read the whole squad or don't read any of them π«Ά iykyk
aaaand that's the page!! mwah π this one shipped out of ./drivers/md/dm-vdo back in October 2026 β go drink some water and go read admin-state.c, bestie ππ§ββοΈ periodt.
π¦ 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