power_off(9)
π 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 napnumβ 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms