ENUM SCPSYS_MTCMOS_TYPE(9)
π¦ enum scpsys_mtcmos_type(9) β Kernel API Manual energy
okay so bestie, this is a page straight out of the Kernel API Manual, and it's literally just one enum that tells you what flavor of power domain controller you're dealing with. no cap, it's short, but it's iconic. π
β¨ NAME β¨
enum scpsys_mtcmos_type β the type of power domain controller π
basically it's a little tag that says "hey, this power domain is controlled this way," and honestly? kinda main character energy for something so smol.
πΈ SYNOPSIS πΈ
here's the whole thing, verbatim, don't touch:
enum scpsys_mtcmos_type {
SCPSYS_MTCMOS_TYPE_DIRECT_CTL ,
SCPSYS_MTCMOS_TYPE_HW_VOTER ,
SCPSYS_MTCMOS_TYPE_MAX
};
like, that's it. that's the enum. three constants, no drama. π«Ά
π Constants π
okay so the vibe check on each one:
SCPSYS_MTCMOS_TYPE_DIRECT_CTLβ power domains are controlled with direct access. you're going in yourself, no middleman. lowkey brave of you. π₯SCPSYS_MTCMOS_TYPE_HW_VOTERβ hardware-assisted voted power domain control. the hardware gets a say, you get a say, democracy slays. β¨SCPSYS_MTCMOS_TYPE_MAXβ the number of supported power domain types. it's not a real type bestie, it's the fence at the end of the list, it's giving "last one out turn off the lights." π
ngl, SCPSYS_MTCMOS_TYPE_MAX is a sentinel, not an actual controller type β don't go using it like one, fr fr.
π SEE ALSO π
go touch grass in the kernel file ./drivers/pmdomain/mediatek/mtk-pm-domains.h β that's where this enum lives, and there's more lore over there:
enum scpsys_rtff_type(9)struct scpsys_domain_data(9)struct scpsys_hwv_domain_data(9)
read them in that order, it's the friend group. π§
aaaaand that's the page!! π it came from ./drivers/pmdomain/mediatek, dated October 2026, and it's literally the enum scpsys_mtcmos_type(9) manual page. mwah, go control some power domains responsibly, bestie ππβ
π¦ 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