clkdm_clear_all_sleepdeps(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… clkdm_clear_all_sleepdeps(9) β€” the Kernel API Manual moment πŸŽ€

okay so bestie, buckle up, we're doing kernel clockdomain lore today and honestly? it's giving main character energy for the OMAP2 boot sequence. this page is from the Kernel API Manual, and it's about one very specific little glow-up: yeeting every sleep dependency off a clockdomain. ✨


🌸 NAME 🌸

clkdm_clear_all_sleepdeps β€” remove all sleep dependencies from target clkdm, no cap πŸ§ΉπŸ’€


πŸ¦‹ SYNOPSIS πŸ¦‹

int clkdm_clear_all_sleepdeps (struct clockdomain *clkdm );

like, that's the whole vibe. one function, one pointer, one int coming back at you. πŸ’–


πŸŽ€ ARGUMENTS πŸŽ€

  • clkdm β€” a struct clockdomain *, and it's literally the clockdomain we're about to strip every single sleep dependency off of. it's the target, the it-girl, the one getting the makeover. 🫢

πŸ”₯ DESCRIPTION πŸ”₯

so what does it actually do? it removes all inter-clockdomain sleep dependencies that could prevent clkdm from idling. every last one. gone. not me clearing the whole friend group's sleep deps 😭

where you're supposed to use this: during boot, to initialize the PRCM to a known state β€” and specifically after all clockdomains are put into swsup idle and woken up. order matters, bestie, don't skip the prerequisites. ⭐

what it gives back:

  • -EINVAL if the clkdm pointer is invalid (rude, but valid β€” literally)
  • 0 upon success πŸŽ‰
heads up: -EINVAL exists because bad pointers happen. it's the function's way of saying "girl, that's not a clockdomain." πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

the whole extended universe, fr fr. these all live in the kernel file ./arch/arm/mach-omap2/clockdomain.c β€” go read it, iykyk πŸ“–βœ¨


and that's the tea β˜• this lil page ships from ./arch/arm/mach-omap2, stamped October 2026, and it's been serving kernel API realness ever since. go clear those sleep deps, bestie, slay πŸ’…πŸŒˆπŸ’œ

πŸ“¦ where this page comes from