aemif_calc_rate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… aemif_calc_rate(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ β€” this one's a lil function called aemif_calc_rate, and honestly? it's giving "math fairy does your timing homework" πŸ§šπŸ’–


🌸 NAME 🌸

aemif_calc_rate β€” calculate timing data. no cap, that's the whole job πŸŽ€


✨ SYNOPSIS ✨

u32 aemif_calc_rate (struct platform_device *pdev , int wanted ,
       unsigned long clk );

look at her. three lil args, one u32 coming back. iconic πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • pdev β€” the platform device you're calculating for, bestie. this is your main character 🫢
  • wanted β€” the cycle time you need, in nanoseconds. yes, nanoseconds. she's precise like that ⏱️
  • clk β€” the input clock rate, in kHz. don't mix up your units or it's giving πŸ’€

πŸ’– RETURN πŸ’–

the calculated timing value minus 1, so it's easy to program straight into the AEMIF timing registers ✨ β€” like, that -1 is lowkey doing you a solid, iykyk πŸ™ˆ


πŸ”₯ SEE ALSO πŸ”₯

go read the whole squad fr fr, they're all linked up and they all ate πŸ‘‘πŸŒˆ


vibe check reminder: wanted is nanoseconds, clk is kHz. that's literally it, don't come for me 😭

mwah, that's the page! πŸ“ this lil drop came from ./drivers/memory, dated October 2026 β€” stan a kernel doc that stays fresh βœ¨πŸ’œπŸ¦‹

πŸ“¦ where this page comes from