tegra_emc_set_min_rate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ 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, that type is 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 ⭐


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