vdo_make_action_manager(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ vdo_make_action_manager(9) ✨

okay so bestie, welcome to the Kernel API Manual entry for vdo_make_action_manager(9) β€” yes the title is the same as the function name, iconic behavior honestly πŸŽ€


πŸ’… NAME

vdo_make_action_manager β€” literally just: make an action manager. that's it. that's the whole vibe πŸ¦‹


🌸 SYNOPSIS

int vdo_make_action_manager (zone_count_t zones ,
vdo_zone_thread_getter_fn get_zone_thread_id , thread_id_t
initiator_thread_id , void *context , vdo_action_scheduler_fn scheduler
, struct vdo *vdo , struct action_manager **manager_ptr );

like, seven arguments?? she's thriving on parameters, no cap πŸ’€ but it returns an int, so at least there's a return code to check. always check it, bestie 🫢


✨ ARGUMENTS ✨

  • zones β€” a zone_count_t, aka the number of zones the actions are gonna be applied to. think of it as "how many girlies are we doing this for" 🌈
  • get_zone_thread_id β€” a vdo_zone_thread_getter_fn, which is a function that gets the thread id that's associated with a zone. it's giving "you go find out who's on shift" energy πŸ”₯
  • initiator_thread_id β€” a thread_id_t: the thread on which actions may be initiated. main character thread, periodt πŸ‘‘
  • context β€” a void * that holds the per-zone context for the action. it's the little bag of stuff each zone carries around πŸŽ€
  • scheduler β€” a vdo_action_scheduler_fn, a function that schedules a next action after an action concludes, but only if there's no pending action. and plot twist: it may be NULL 🫢 (yes bestie, NULL is legal here, don't panic)
  • vdo β€” the struct vdo * used to initialize completions ⭐
  • manager_ptr β€” a pointer to a struct action_manager * that's gonna hold the new action manager. like an empty tote bag waiting for the new manager to be dropped in πŸ¦‹

πŸ’– RETURN

VDO_SUCCESS or an error code. so cute, so simple β€” check it, don't sleep on it 😭


🧚 SEE ALSO

go read the whole crew, iykyk πŸ’œ


aaaand that's the page bestie! πŸ’… this one lives in ./drivers/md/dm-vdo, dated October 2026, and it's filed under vdo_make_action_manager(9) β€” go make some action managers, slay πŸŒŸπŸ“

πŸ“¦ where this page comes from