ahci_platform_enable_phys(9)
π ahci_platform_enable_phys(9) β a Kernel API Manual moment
okay bestie, so this one lives in the Kernel API Manual and it's literally called ahci_platform_enable_phys β section 9, iykyk. It's giving "wake up, the PHYs are sleeping" energy and honestly? iconic. Let's get into it π¦
β¨ NAME β¨
ahci_platform_enable_phys β Enable PHYs π
That's it. That's the whole name. Short, sweet, slays.
π«Ά SYNOPSIS π«Ά
int ahci_platform_enable_phys (struct ahci_host_priv *hpriv );
Copy it exactly, don't @ me. π
πΈ ARGUMENTS πΈ
hprivβ the host private area, and it's where the config values get stored. Think of it as your little aesthetic storage pouch for this whole operation. It's the main character here, no cap. π
π₯ DESCRIPTION π₯
So here's the tea, bestie: this function enables all the PHYs it finds chillin' in hpriv->phys β if any. Like, if there are none, cool, no drama, nothing to do. π
But the way that it handles failure? Honestly obsessed. If a PHY fails to be enabled, it goes back and disables all the PHYs that were already enabled, and it does it in reverse order β undoing everything in the exact opposite sequence of how it went down. Then it returns an error. Cleanup queen behavior, fr fr. π§Ήβ¨
β RETURN β
0on success π- otherwise a negative error code π
That's the whole vibe check: zero means we ate, negative means something went sideways.
π SEE ALSO π
First up, the kernel file itself, in case you wanna go read the source like the scholar you are:
- Kernel file
./drivers/ata/libahci_platform.c
And the whole friend group of related functions, all here, all accounted for, don't skip any of them:
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_enable_regulators(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)
ngl bestie, bookmark these. The enable/disable pairs are giving matched set. π
okay that's the whole page, mwah π β it shipped from ./drivers/ata in October 2026, and this little manual page is literally titled ahci_platform_enable_phys(9) just so you never forget her name. bye bestie, go enable some PHYs 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