sdhci_arasa...er_sdcardclk(9)
π sdhci_arasan_register_sdcardclk β the Kernel API Manual, bestie edition πΈ
okay so real talk, this is from the Kernel API Manual and it's the page for sdhci_arasan_register_sdcardclk, which lowkey has the longest name ever but we move π
β¨ NAME β¨
sdhci_arasan_register_sdcardclk β literally just registers the sdcardclk so a PHY can use it. that's the whole vibe π
π¦ SYNOPSIS π¦
int sdhci_arasan_register_sdcardclk (struct sdhci_arasan_data
*sdhci_arasan , struct clk *clk_xin , struct device *dev );
three args, one int coming back at you, no cap β¨
π ARGUMENTS π
sdhci_arasanβ our very own private data structure π«Ά like, ours, our little guy.clk_xinβ pointer to the functional clock βdevβ pointer to ourstruct deviceπ
π DESCRIPTION π
so some PHY devices are nosy (affectionate) and genuinely need to know what the actual card clock is πΈ and the way they find out? we hand them a clock through the common clock framework so they can go query it themselves. it's giving "here bestie, look it up" πβ¨
π₯ RETURN π₯
0 on success π and an error value on error ππ (yes that's the whole return section, it ate and left no crumbs)
π§ SEE ALSO π§
Kernel file ./drivers/mmc/host/sdhci-of-arasan.c β go read it, iykyk π
and the whole friend group:
struct sdhci_arasan_soc_ctl_field(9)struct sdhci_arasan_soc_ctl_map(9)struct sdhci_arasan_clk_ops(9)struct sdhci_arasan_clk_data(9)struct sdhci_arasan_data(9)sdhci_arasan_syscon_write(9)sdhci_arasan_suspend(9)sdhci_arasan_resume(9)sdhci_arasan_sdcardclk_recalc_rate(9)sdhci_arasan_sampleclk_recalc_rate(9)sdhci_zynqmp_sdcardclk_set_phase(9)sdhci_zynqmp_sampleclk_set_phase(9)sdhci_versal_sdcardclk_set_phase(9)sdhci_versal_sampleclk_set_phase(9)sdhci_arasan_update_clockmultiplier(9)sdhci_arasan_update_baseclkfreq(9)arasan_dt_parse_clk_phases(9)sdhci_arasan_register_sampleclk(9)sdhci_arasan_unregister_sdclk(9)sdhci_arasan_update_support64b(9)sdhci_arasan_register_sdclk(9)
ngl every single one of those is linked and every single one matters, don't skip a single one or i will know π
okay that's the page!! sourced from ./drivers/mmc/host, dated October 2026, and that's the whole manual entry, 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