vdo_finish_..._with_result(9)
π vdo_finish_resuming_with_result β like, the Kernel API Manual edition π
okay so bestie, welcome to the glow-up of vdo_finish_resuming_with_result(9), straight out of the Kernel API Manual. this one is a little cutie from the dm-vdo admin-state saga, and it's lowkey the "wrap it up" bestie of the resume operation. let's get into it β¨
πΈ NAME πΈ
vdo_finish_resuming_with_result β the function that finishes a resume operation with a status code. that's it, that's the vibe. π
β¨ SYNOPSIS β¨
bool vdo_finish_resuming_with_result (struct admin_state *state , int
result );
so she takes an admin state and a result, and she gives you back a bool. iconic signature tbh π«Ά
π¦ ARGUMENTS π¦
stateβ the current admin state. yes, the current one, not some other one, we're not doing that today πresultβ the result of the resume operation. like, how did the resume go? you tell her here. π
π RETURN π
returns true if the state was resuming; and if it was, she will notify the waiter. so thoughtful of her, honestly. πΈ
no cap, that's the whole return contract β true = was resuming, and the waiter gets notified. don't sleep on the notification part bestie π
π₯ SEE ALSO π₯
okay this is the part where we tag literally everyone in the group chat. all of these 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_resume_if_quiescent(9)vdo_start_operation(9)vdo_start_operation_with_waiter(9)
like, the whole admin-state friend group fr fr π«Άπ
and that's the page! she lives in./drivers/md/dm-vdo, she's stamped October 2026, and she's filed undervdo_finish_..._with_result(9)in the Kernel API Manual. mwah, go finish some resumes 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