begin_operation(9)
π begin_operation(9) π
okay so this page is from the Kernel API Manual, and it's all about starting an operation only if the current state says it's allowed. bestie, it's giving "look before you leap" but make it kernel. π
π NAME π
begin_operation β begin an operation if it may be started given the current state. like, state check first, operation second, no cap.
β¨ SYNOPSIS β¨
int begin_operation (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 operation can start.operationβ the operation to be started. the main character of this function call, fr fr.waiterβ a completion to notify when the operation is complete; may beNULL. so if you don't need the notification, you can passNULLand keep it moving.initiatorβ thevdo_admin_initiator_fnto call if the operation may begin; may beNULL. another optional icon βNULLis allowed here too.
π¦ RETURN π¦
VDO_SUCCESS or an error. that's it, that's the whole return vibe. π
π SEE ALSO π
kernel file: ./drivers/md/dm-vdo/admin-state.c β go read the source, iykyk. π
get_next_state(9)vdo_finish_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)vdo_start_operation_with_waiter(9)
π cute little sign-off: source/version ./drivers/md/dm-vdo, dated October 2026 β kisses, 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