ahci_platform_enable_clks(9)
π ahci_platform_enable_clks (9) β like, the Kernel API Manual girlies know π
okay so bestie, grab your strawberry drink π because we're diving into the Kernel API Manual and this one function is lowkey iconic. It's a 9 β kernel API territory β and it's about making the clocks go brrr for your AHCI device. Let's get into it β¨
πΈ NAME πΈ
ahci_platform_enable_clks β Enable platform clocks π°οΈβ¨
π¦ SYNOPSIS π¦
int ahci_platform_enable_clks (struct ahci_host_priv *hpriv );
that's it. one argument. one int back. main character energy, honestly π
π ARGUMENTS π
hprivβ the host private area where all the config values live. it's literally the little storage spot for this AHCI host's settings, and you're handing it over so the function knows whose clocks it's dealing with π«Ά
π DESCRIPTION π
so here's the tea β β this function enables all the clks found for the AHCI device. Every single one it finds. Not some, not a few β all the clks. it's giving "turn everything on, we're going full sparkle mode" β¨
no cap, that's the whole vibe. it finds the clocks, it enables them. slay.
π RETURN π
0on success β yes queen, we ate π- a negative error code otherwise β π something went sideways, check the sign
fr fr, if you get a negative number back, that's your cue that it did not go well. don't ignore the negative, bestie.
π SEE ALSO π
the whole friend group π«Ά these are all the siblings and cousins and that one source file:
- Kernel file
./drivers/ata/libahci_platform.c ahci_platform_enable_phys(9)ahci_platform_disable_phys(9)ahci_platform_find_clk(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)
iykyk β if you ever need to un-enable them, ahci_platform_disable_clks(9) is right there. balance. symmetry. iconic π«
and that's the page, bestie!! π§ this lil gem lives in ./drivers/ata and it's dated October 2026 in the Kernel API Manual β so yeah, she's a 9, she's current, and she's slaying. mwah ππβ¨
π¦ 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