vdo_schedule_operation(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– vdo_schedule_operation(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual entry for vdo_schedule_operation(9) β€” yes, we're in kernel API land, and this one is literally about scheduling an operation to be applied to all zones. no cap, the zone coverage is the whole point. ✨

🌸 NAME 🌸

vdo_schedule_operation β€” schedule an operation to be applied to all zones.

✨ SYNOPSIS ✨

bool vdo_schedule_operation (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 , struct
       vdo_completion *parent );

πŸŽ€ ARGUMENTS πŸŽ€

  • manager β€” the action manager you're scheduling the action on. that's the main character here. πŸ‘‘
  • operation β€” the operation this action will perform. yes, it is giving β€œwhat are we doing.” πŸ’…
  • preamble β€” a method to be invoked on the initiator thread once this action is started but before applying to each zone; may be NULL. so it's the little pre-game moment. 🫢
  • action β€” the action to apply to each zone; may be NULL. the actual zone-by-zone move. πŸ”₯
  • conclusion β€” a method to be invoked back on the initiator thread once the action has been applied to all zones; may be NULL. the wrap-up hug. πŸŽ€
  • parent β€” the object to notify once the action is complete or if the action can not be scheduled; may be NULL. it's on notification duty. πŸ””

🌈 DESCRIPTION 🌈

The operation's action will be launched immediately if there is no current action, or as soon as the current action completes. so if the lane is clear, it goes; if not, it waits its turn. no drama. πŸ’«

If there is already a pending action, this operation will not be scheduled, and, if it has a parent, that parent will be notified. that's the β€œsorry bestie, no room” text. 😭

🚨 bestie, the vibe check is real: at least one of the preamble, action, or conclusion must not be NULL.

like, you cannot bring all NULLs to the function; the vibe check says at least one has to be real. πŸ’€

⭐ RETURN ⭐

Returns true if the action was scheduled. that's the documented win condition, bestie. βœ…

πŸ¦‹ SEE ALSO πŸ¦‹


made with love from the ./drivers/md/dm-vdo source tree, dated October 2026, page vdo_schedule_operation(9) β€” bye bestie, go schedule responsibly 🫢✨

πŸ“¦ where this page comes from