ahci_platform_enable_clks(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 🌈

  • 0 on 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:

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