ahci_platfor...le_resources(9)
π ahci_platform_enable_resources β the kernel API manual, but make it make sense
okay so bestie, welcome to the ahci_platform_enable_resources(9) page β yes that's the section 9 kernel API manual, we're in the big-kid docs today π
β¨ NAME β¨
ahci_platform_enable_resources β the one that turns on all your platform resources. enabling era only, no cap π
π¦ SYNOPSIS π¦
int ahci_platform_enable_resources (struct ahci_host_priv *hpriv );
πΈ ARGUMENTS πΈ
hprivβ the host private area, aka the little spot where all the config values live. that's the vibe, that's the storage π
π₯ DESCRIPTION π₯
okay so here's the tea: this function enables all the ahci_platform-managed resources, and it does them in a very specific order. not chaos, not vibes-based, an actual lineup π
- Regulator
- Clocks (through
ahci_platform_enable_clks) - Resets
- Phys
and the iconique part? if enabling fails at any point, the previously enabled resources get disabled in reverse order. it literally cleans up after itself, we love a self-aware king π«Ά
β RETURN β
0 on success, otherwise a negative error code. slay or nay, that's the whole answer π
π§ SEE ALSO π§
- Kernel file
./drivers/ata/libahci_platform.cβ the source, go read it iykyk 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_enable_regulators(9)ahci_platform_disable_regulators(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)
bestie please go read the actual source file too, the manpage is giving summary energy and the code is giving main character π
mwah, that's the page π brought to you straight outta ./drivers/ata by the October 2026 edition of ahci_platfor...le_resources(9) β yes the header truncated the name too, she's shy π periodt β¨π·
π¦ 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