vdo_schedule_action(9)
π vdo_schedule_action(9) β the kernel API manual, but make it cute
okay so bestie, you found vdo_schedule_action and you're like "what does this even do" β don't worry, i got you. this is from the Kernel API Manual, and honestly? it's giving "queue up a little task for every zone" and i'm kinda obsessed. β¨
πΈ NAME πΈ
vdo_schedule_action β schedule an action to be applied to all zones. literally what it says on the tin, no cap.
π SYNOPSIS π
bool vdo_schedule_action (struct action_manager *manager ,
vdo_action_preamble_fn preamble , vdo_zone_action_fn action ,
vdo_action_conclusion_fn conclusion , struct vdo_completion *parent );
like, five whole arguments. slay. let's meet them π
π¦ ARGUMENTS π¦
managerβ the action manager you're scheduling the action on. this is the main character that runs the whole show πpreambleβ a method that gets invoked on the initiator thread once this action is started, but before it's applied to each zone; may beNULL. so it's the lil pre-game hype moment, and yes she can ghost you.actionβ the actual action to apply to each zone; may beNULL. the main event, but also optional, no pressure π«Άconclusionβ a method invoked back on the initiator thread once the action has been applied to all zones; may beNULL. the cool-down, the afters, the "we did that."parentβ the object to notify once the action is complete, or if the action can not be scheduled; may beNULL. your emotional support notification object π
β¨ DESCRIPTION β¨
so here's the tea π: the action gets launched immediately if there's no current action, or as soon as the current action completes. like, she's ready when you're ready.
but β and this is the important bit β if there is already a pending action, this action will not be scheduled, and if it has a parent, that parent will be notified. so no cutting in line, bestie. π
also fr fr: at least one of thepreamble,action, orconclusionmust not beNULL. all three beingNULLis a vibe check that does not pass. π
β RETURN β
true if the action was scheduled. that's it. that's the whole mood. β
π SEE ALSO π
Kernel file ./drivers/md/dm-vdo/action-manager.cstruct action(9)struct action_manager(9)vdo_make_action_manager(9)vdo_schedule_default_action(9)vdo_schedule_operation(9)vdo_schedule_operation_with_context(9)
go read those too, iykyk π§
and that's the page, bestie! π it lives over in ./drivers/md/dm-vdo, dated October 2026, and it's part of the Kernel API Manual. mwah, go schedule something iconic π
π₯π
π¦ 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