sunxi_ccu_g..._timing_mode(9)
π sunxi_ccu_get_mmc_timing_mode β the Kernel API Manual page, but make it make sense π
okay so bestie, welcome to the Kernel API Manual β¨ this little cutie lives in the sunxi_ccu_g..._timing_mode(9) section and honestly? she's short, she's sweet, she's giving "one function, zero drama" π
β¨ NAME β¨
sunxi_ccu_get_mmc_timing_mode β get the current MMC clock timing mode ππ
like... you're asking a clock "hey girl, which timing mode are you in rn?" and she tells you. iconic behavior tbh.
πΈ SYNOPSIS πΈ
int sunxi_ccu_get_mmc_timing_mode (struct clk *clk );
one function, one arg, returns an int. no cap, that's the whole vibe π¦
π«Ά ARGUMENTS π«Ά
clkβ the clock you wanna query π literally just hand her the clock and she'll spill the tea about her timing mode.
β RETURN β
okay so here's the vibe check on what you get back:
0β the clock is in old timing mode π°οΈ> 0β the clock is in new timing mode β¨ (bigger than zero, so yes, she upgraded)-ENOTSUPPβ the clock doesn't support this function at all π like sorry bestie, wrong number, this clock can't help you
lowkey important: -ENOTSUPP isn't a soft fail, it's a "this clock literally does not do this" so don't go expecting 0 or >0 to save you π
π¦ SEE ALSO π¦
- Kernel file
./drivers/clk/sunxi-ng/ccu_mmc_timing.cπ β the source, go read it if you're feeling main character energy sunxi_ccu_set_mmc_timing_mode(9)β her sister function, the one that actually sets the mode. iykyk π
k that's the whole page, fr fr π short but she ate. go forth and query your clocks responsibly π§ββοΈπ
sign-off szn: this lil masterpiece comes from ./drivers/clk/sunxi-ng, dated October 2026 β periodt, we're done here π
π
π¦ 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