tegra_emc_set_min_rate(9)
π tegra_emc_set_min_rate(9) β the Kernel API Manual glow-up β¨
okay so bestie, welcome to the <pink>tegra_emc_set_min_rate</pink> page from the good ol' Kernel API Manual (section 9, kernel-land, iykyk). this one's lowkey adorable β it's the function that raises the floor on your memory clock requests π
πΈ NAME πΈ
tegra_emc_set_min_rate β update the minimum rate request for a request type. that's it, that's the whole vibe π
β¨ SYNOPSIS β¨
int tegra_emc_set_min_rate (struct tegra_emc_rate_requests *reqs ,
unsigned long rate , enum tegra_emc_rate_request_type type );
like, three arguments, one int back. very demure, very mindful π«Ά
π¦ ARGUMENTS π¦
reqsβ the rate request tracking state. this is the little notebook where all the requests are being kept πrateβ the new minimum rate, in Hz, thattypeis asking for. yes, Hz, fr fr π₯typeβ the type of request. which flavor of request is doing the asking π
π DESCRIPTION π
so what it does is: it records rate as the brand-new minimum rate request for type π then it recalculates the target rate based on all the requests (not just yours, bestie, the whole group chat), and applies that new rate through the OPP API. slay.
π§ CONTEXT π§
it sleeps. not a nap in the middle of an interrupt, like an actual sleeping function, so mind where you call it π
requests to the same reqs are synchronized via mutex β so yes, the reqs are getting locked down, no cap. π
π RETURN π
0β success π you ate-ERANGEβ the request would cause the minimum rate request to be higher than the maximum rate request. that's a no from the vibes π the floor can't be above the ceiling, bestie- other β setting the new rate failed π (some other error, not gonna name names)
β SEE ALSO β
- Kernel file
./drivers/memory/tegra/tegra-emc-common.cβ go read the source, iykyk π tegra_emc_rate_requests_init(9)tegra_emc_set_max_rate(9)
lowkey reminder: this thing sleeps, so don't be out here calling it from somewhere spicy π₯ and remember the mutex is doing the real main character work for same-reqs calls π
that's the page, bestie π«Ά brought to you straight out of ./drivers/memory/tegra, dated October 2026, and yes β it's the tegra_emc_set_min_rate(9) manual page. 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