ahci_platform_find_clk(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ahci_platform_find_clk(9) β€” like, the Kernel API Manual one, bestie πŸŽ€

okay so real talk, we're in the Kernel API Manual today, section 9, and the star of the show is ahci_platform_find_clk. it's giving "small function, big responsibilities" and honestly? we're obsessed. ✨


🌸 NAME 🌸

ahci_platform_find_clk β€” Find platform clock πŸ•°οΈβœ¨ (yes that's literally it, she's a finder, that's her whole job, and she ate)


πŸ¦‹ SYNOPSIS πŸ¦‹

struct clk * ahci_platform_find_clk (struct ahci_host_priv *hpriv ,
const char *con_id );

like, she takes two things and gives you back a struct clk *. no cap. πŸ’…


πŸ’– ARGUMENTS πŸ’–

  • hpriv β€” the host private area where config values get stored 🫢 (it's the lil' stash spot, iykyk)
  • con_id β€” the clock connection ID πŸŽ€ (your ticket to the right clock, fr fr)

⭐ DESCRIPTION ⭐

okay so here's the tea: this function returns a pointer to the clock descriptor of the clock with the passed ID. that's it. that's the vibe check. πŸ”₯

you hand her a con_id, she hands you back the clock descriptor β€” match made in heaven, lowkey iconic. πŸ‘‘


🧚 RETURN 🧚

Pointer to the clock descriptor on success πŸ’– β€” otherwise NULL 😭 (and yes, NULL is the sad little "nope, didn't find her" ending, we've all been there)


🌈 SEE ALSO 🌈

first up, the actual source file (go read it, it's a whole mood):

  • Kernel file ./drivers/ata/libahci_platform.c

and then the whole friend group 🫢 β€” the entire ahci_platform squad, all here, all linked, no one left behind:

πŸ’€ quick reminder bestie: enable/disable, assert/deassert, suspend/resume β€” they come in pairs, do not mix them up, that's how you get main character energy of the wrong kind πŸ™ˆ

πŸ“ SIGN-OFF πŸ“

that's the whole page, bestie! πŸ¦‹ this lil' gem lives over in ./drivers/ata and it was dated October 2026 β€” so go forth, find your clocks, and remember: if it returns NULL, it's not you, it's the connection ID. πŸ’œ

ahci_platform_find_clk(9) β€” periodt. πŸ‘‘πŸ’…βœ¨

πŸ“¦ where this page comes from