power_off(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ power_off(9) β€” the kernel API manual is giving main character energy today

okay so welcome to the Kernel API Manual, bestie πŸ’… this is the page for power_off(9) and it's literally about shutting devices down, which is lowkey the most underrated glow-down in the whole kernel. let's get into it ✨


πŸŽ€ NAME πŸŽ€

power_off β€” power off the devices in the OVL adaptor 🫢

🌸 SYNOPSIS 🌸

void power_off (struct device *dev , int num );

that's it, that's the whole signature. short, sweet, iconic πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does it do? it calls the .power_off ovl_adaptor component callback if it is present β€” and ngl that "if it is present" is doing a lot of work, because if the callback isn't there, nothing happens. no cap, that's the whole behaviour. no hidden side quests, no surprise lore πŸ’€

quick vibe check: the callback only fires when it actually exists on the ovl_adaptor component, so don't go assuming it always runs something πŸ™ˆ

✨ ARGUMENTS ✨

  • dev β€” the device to be powered off πŸ’€ she's the one getting the nap
  • num β€” the number of devices to be powered off πŸ”’ like, how many of them are we putting to sleep

πŸ’– SEE ALSO πŸ’–

  • Kernel file ./drivers/gpu/drm/mediatek/mtk_disp_ovl_adaptor.c β€” the literal source, go read her, she's serving πŸ“
  • mtk_ovl_adaptor_power_on(9) β€” the opposite energy, the powering-on sibling, the duo fr fr 🌈

and that's the whole page, bestie 🧚 this entry lives in ./drivers/gpu/drm/mediatek and it's dated October 2026, so like… future-coded queen behavior ⭐ mwah, go power something off responsibly πŸ’œ

πŸ“¦ where this page comes from