ahci_platfo...e_regulators(9)
β¨ ahci_platform_enable_regulators(9) β¨
Okay bestie, welcome to the Kernel API Manual π β this page is literally all about ahci_platform_enable_regulators, and no cap, it's a little baddie of a function. Let's get into it π
πΈ NAME πΈ
ahci_platform_enable_regulators β turn on the regulators, periodt π
π¦ SYNOPSIS π¦
int ahci_platform_enable_regulators (struct ahci_host_priv *hpriv );
π ARGUMENTS π
hprivβ the host private area, aka where you store your config values π«Ά it's giving "my little bag of settings" energy.
π§ DESCRIPTION π§
So basically this function enables all the regulators it can find in the controller and in hpriv->target_pwrs, if there are any π.
And here's the part where it's highkey smart: if one of the regulators refuses to turn on π, it goes ahead and disables all the regulators it already enabled β in reverse order β and then returns an error. Iconic cleanup behaviour fr fr, it doesn't leave a mess behind β¨.
β RETURN β
0 on success, otherwise a negative error code π (that's the little "nope" signal, bestie).
π SEE ALSO π
Kernel file ./drivers/ata/libahci_platform.c
ahci_platform_enable_phys(9)ahci_platform_disable_phys(9)ahci_platform_find_clk(9)ahci_platform_enable_clks(9)ahci_platform_disable_clks(9)ahci_platform_deassert_rsts(9)ahci_platform_assert_rsts(9)ahci_platform_disable_regulators(9)ahci_platform_enable_resources(9)ahci_platform_disable_resources(9)ahci_platform_get_resources(9)ahci_platform_init_host(9)ahci_platform_shutdown(9)ahci_platform_suspend_host(9)ahci_platform_resume_host(9)ahci_platform_suspend(9)ahci_platform_resume(9)
π‘ Friendly reminder: this whole squad lives under ./drivers/ata β the whole friend group of regulator/clk/phys/reset helpers. Go say hi π
Alright bestie, that's the whole page ππ it came from the ./drivers/ata directory, dated October 2026, and yeah β the header and footer both cheekily abbreviate the name as ahci_platfo...e_regulators(9), which is giving "my name is too long for the terminal, help" π slay either way πβ¨
π¦ 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