vdo_schedul...with_context(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… vdo_schedule_operation_with_context(9) β€” from the Kernel API Manual, bestie

okay so picture this: you're in the kernel, you've got zones, and you need an operation to hit all of them. That's this function. It's giving main character energy in the action-manager department. Let's get into it 🫢


✨ NAME ✨

vdo_schedule_operation_with_context β€” schedules an operation on all the zones. every single one. no zone left behind πŸ’–


🌸 SYNOPSIS 🌸

bool vdo_schedule_operation_with_context (struct action_manager *manager
, const struct admin_state_code *operation , vdo_action_preamble_fn
preamble , vdo_zone_action_fn action , vdo_action_conclusion_fn
conclusion , void *context , struct vdo_completion *parent );

πŸŽ€ ARGUMENTS πŸŽ€

  • manager β€” the action manager you're scheduling the action on. your venue, your vibe.
  • operation β€” the operation this action is gonna perform.
  • preamble β€” a method that gets invoked on the initiator thread once the action is started but before it applies to each zone. can be NULL.
  • action β€” the action to apply to each zone. can be NULL.
  • conclusion β€” a method invoked back on the initiator thread once the action has been applied to all the zones. can be NULL.
  • context β€” an action-specific context, and you can grab it back later via vdo_get_current_action_context. can be NULL.
  • parent β€” the object to notify once the action is complete, or if the action can not be scheduled. can be NULL.

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea β˜• β€” the operation's action launches immediately if there's no current action chilling there. If there is one, it waits and launches as soon as that current action completes. patient queen behavior.

But 🚨 β€” if there's already a pending action, this operation will not be scheduled, and if it has a parent, that parent gets notified instead. iykyk.

⚠️ and bestie, listen: at least one of preamble, action, or conclusion must not be NULL. like, at least one. don't come in here with all three null, that's not the vibe. 😭

πŸ”₯ RETURN πŸ”₯

true if the action was scheduled. slay πŸ’…


🌈 SEE ALSO 🌈


okay that's the whole page, go forth and schedule responsibly πŸ§šβ€β™€οΈπŸ’œ

this lil beauty lives in ./drivers/md/dm-vdo and it was dated October 2026 β€” mwah, periodt πŸ’‹

πŸ“¦ where this page comes from