sdhci_arasan..._recalc_rate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sdhci_arasan..._recalc_rate(9) β€” a Kernel API Manual moment

okay so bestie, welcome to the Kernel API Manual page for sdhci_arasan..._recalc_rate(9). yes the title is truncated with literal dots, no that's not a typo, that's just how the man page generator woke up that day. we move. 🫢


✨ NAME ✨

sdhci_arasan_sdcardclk_recalc_rate β€” literally just returns the card clock rate. that's it. that's the whole job. πŸ’–


🌸 SYNOPSIS 🌸

unsigned long sdhci_arasan_sdcardclk_recalc_rate (struct clk_hw *hw ,
unsigned long parent_rate );

two args, one return, zero drama. (well, the caller might bring drama, but that's not our problem.) ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • hw β€” a pointer to the hardware clock structure. just a pointer. it's giving "i know a guy" energy. πŸ‘‘
  • parent_rate β€” the parent rate, and like, it should be the rate of clk_xin. read that again: should. the man page said should, not must, and we are not gonna pretend otherwise. πŸ™ˆ

πŸŽ€ DESCRIPTION πŸŽ€

so what does it actually do? it returns the current actual rate of the SD card clock. not the theoretical one, not the one you hoped for in the device tree, the actual one. πŸ’…

and why do we care? because this rate can be used to communicate with our PHY. that's the whole reason this function exists β€” the PHY needs to know what the card clock is actually doing. (yes, the original says "out PHY", not "our PHY". we're keeping the typo because it's iconic and also because i do not get to edit source code, i'm just the vibe translator.) 😭


⭐ RETURN ⭐

returns the card clock rate, as an unsigned long. that's the whole return section. short and slay. πŸ”₯


πŸ’œ SEE ALSO πŸ’œ

the friend group. the whole squad. every single one of them, no cap:

like i said. the whole squad. 🌈


ngl bestie, this one's a short read β€” recalc the rate, hand it back, let the PHY know. but you still gotta read the whole squad list, that's the rules. πŸ’€

and that's the page!! sourced straight from ./drivers/mmc/host, dated October 2026 β€” so yeah, technically from the future, which is lowkey main character energy. go forth and recalc those rates, bestie. πŸ§šπŸ’–βœ¨

πŸ“¦ where this page comes from