ahci_platfo...e_regulators(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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


πŸ’‘ 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