__cpuidle_cooling_register(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ __cpuidle_cooling_register ✨

okay bestie, welcome to the Kernel API Manual entry for __cpuidle_cooling_register(9) β€” yes that's a double underscore, yes it's on purpose, and yes she is that girl πŸ’…


πŸŽ€ NAME πŸŽ€

__cpuidle_cooling_register β€” register the cooling device 🧊✨

🌸 SYNOPSIS 🌸

int __cpuidle_cooling_register (struct device_node *np , struct
       cpuidle_driver *drv );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • np β€” a device node structure pointer, and she's the one used for the thermal binding 🫢
  • drv β€” a cpuidle driver structure pointer, iconic, no notes πŸ’œ

πŸ’– DESCRIPTION πŸ’–

so like, this function is in charge of a whole little to-do list and she does not skip a single item:

  • allocating the cpuidle cooling device structure
  • the idle injection
  • initializing them
  • registering the cooling device to the thermal framework πŸ”₯

allocate, init, register, done. main character energy fr fr πŸ‘‘

⭐ RETURN ⭐

  • zero on success πŸŽ‰ (we love a zero)
  • a negative value returned by one of the underlying subsystems in case of error 😭 β€” not her fault bestie, blame the subsystem, she's just the messenger

🌈 SEE ALSO 🌈

Kernel file ./drivers/thermal/cpuidle_cooling.c, plus this whole friend group:


and that's the page 🫢 she lives in ./drivers/thermal, she's dated October 2026, and she answers to __cpuidle_cooling_register(9) β€” go read her siblings, iykyk πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from