clkdm_for_each(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– clkdm_for_each(9) β€” Kernel API Manual πŸ¦‹

okay bestie, this is the Kernel API Manual page for clkdm_for_each(9) β€” and it's giving β€œtiny iterator with big responsibilities” energy. ✨

🌸 NAME

clkdm_for_each β€” call function on each registered clockdomain.

✨ SYNOPSIS

int clkdm_for_each (int (*fn)(struct clockdomain *clkdm, void *user) ,
       void *user );

πŸŽ€ ARGUMENTS

  • fn β€” callback function *, aka the callback that gets called for each registered clockdomain.
  • user β€” -- undescribed -- πŸ™ˆ that's literally what the page says, no cap.

πŸ’… DESCRIPTION

Call the supplied function fn for each registered clockdomain. Fr fr, every single one. πŸ’«

The callback function fn can return anything but 0 to bail out early from the iterator. So 0 keeps it going, and anything else is like β€œbestie, we're out.” 😭

The callback function is called with the clkdm_mutex held, so no clockdomain structure manipulation functions should be called from the callback β€” like, do not do that. Although hardware clockdomain control functions are fine. πŸ‘‘

Returns the last return value of the callback function, which should be 0 for success or anything else to indicate failure; or -EINVAL if the function pointer is null.

πŸ‘€ SEE ALSO

Kernel file ./arch/arm/mach-omap2/clockdomain.c β€” _clkdm_register(9), _autodep_lookup(9), _resolve_clkdm_deps(9), _clkdm_add_wkdep(9), _clkdm_del_wkdep(9), _clkdm_add_sleepdep(9), _clkdm_del_sleepdep(9), clkdm_register_platform_funcs(9), clkdm_register_clkdms(9), clkdm_register_autodeps(9), clkdm_complete_init(9), clkdm_lookup(9), clkdm_get_pwrdm(9), clkdm_add_wkdep(9), clkdm_del_wkdep(9), clkdm_read_wkdep(9), clkdm_clear_all_wkdeps(9), clkdm_add_sleepdep(9), clkdm_del_sleepdep(9), clkdm_read_sleepdep(9), clkdm_clear_all_sleepdeps(9), clkdm_sleep_nolock(9), clkdm_sleep(9), clkdm_wakeup_nolock(9), clkdm_wakeup(9), clkdm_allow_idle_nolock(9), clkdm_allow_idle(9), clkdm_deny_idle_nolock(9), clkdm_deny_idle(9), clkdm_add_autodeps(9), clkdm_del_autodeps(9), clkdm_clk_enable(9), clkdm_clk_disable(9), clkdm_hwmod_enable(9), clkdm_hwmod_disable(9), _clkdm_save_context(9), _clkdm_restore_context(9), clkdm_save_context(9), clkdm_restore_context(9).


mwah πŸ’‹ that's the whole page! Source/version: ./arch/arm/mach-omap2; date: October 2026; page: clkdm_for_each(9). bye bestie 🫢✨

πŸ“¦ where this page comes from