tegra_emc_set_max_rate(9)
β¨ tegra_emc_set_max_rate(9) β¨
okay so this is a page from the Kernel API Manual bestie, and today's main character is tegra_emc_set_max_rate π
πΈ NAME πΈ
tegra_emc_set_max_rate β updates the maximum rate request for a request type π
π¦ SYNOPSIS π¦
int tegra_emc_set_max_rate (struct tegra_emc_rate_requests *reqs ,
unsigned long rate , enum tegra_emc_rate_request_type type );
π ARGUMENTS π
reqsβ the rate request tracking state, like the group chat where all the requests live πrateβ the new maximum rate in Hz that's being requested by type β‘typeβ which type of request this is, iykyk π
π₯ DESCRIPTION π₯
So basically it records rate as the new maximum rate request for type, then recalculates the target rate based on all the requests (not just this one, bestie, it's a whole vibe check across the board β¨) and applies that new rate through the OPP API. slay.
π§ CONTEXT π§
It sleeps. π΄ And requests to the same reqs are synchronized via mutex, so no chaotic overlapping energy β everything stays cute and orderly π«Ά
π RETURN π
0β success, we ate π-ERANGEβ the request would cause the minimum rate request to be higher than the maximum rate request π (yes that's a problem, it's giving broken vibes)- other β setting the new rate just... failed π
π SEE ALSO π
- Kernel file
./drivers/memory/tegra/tegra-emc-common.c tegra_emc_rate_requests_init(9)tegra_emc_set_min_rate(9)
and that's the whole page, no cap π this cutie lives under ./drivers/memory/tegra, dated October 2026, and it's literally tegra_emc_set_max_rate(9) β go forth and rate-request responsibly bestie ππ¦
π¦ 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