devm_tegra_pmc_get(9)
π devm_tegra_pmc_get(9) β Kernel API Manual, but make it make sense
okay so bestie, welcome to the glow-up edition of devm_tegra_pmc_get(9) β¨ this is the Kernel API Manual page you've been looking for, and honestly? it's short, it's sweet, and it's giving "tiny function, big main character energy" π
β¨ NAME β¨
devm_tegra_pmc_get β find the PMC for a given device π¦
like, it goes and finds the PMC that belongs to a device. that's the whole vibe. no cap.
πΈ SYNOPSIS πΈ
struct tegra_pmc * devm_tegra_pmc_get (struct device *dev );
look at her. one argument. no drama. icon behavior π
π«Ά ARGUMENTS π«Ά
devβ the device you're hunting the PMC for π like, this device right here, bestie, that's the one.
π DESCRIPTION π
so here's the tea β this function returns a pointer to the PMC on success π β or, if things don't go your way, it gives you an ERR_PTR-encoded error code instead π
that's it. that's the whole function. short and iconic, honestly obsessed.
tiny reminder that the failure case comes back as anERR_PTR-encoded error code β not a plainNULLβ so check it properly, bestie, don't do her dirty π
π SEE ALSO π
okay this is the friend group, and they're all linked from the Kernel file ./drivers/soc/tegra/pmc.c π
struct tegra_pmc(9)tegra_powergate_set(9)tegra_pmc_powergate_power_on(9)tegra_pmc_powergate_power_off(9)tegra_powergate_is_powered(9)tegra_pmc_powergate_remove_clamping(9)tegra_pmc_powergate_sequence_power_up(9)tegra_pmc_io_pad_power_enable(9)tegra_pmc_io_pad_power_disable(9)tegra_get_cpu_powergate_id(9)tegra_pmc_cpu_is_powered(9)tegra_pmc_cpu_power_on(9)tegra_pmc_cpu_remove_clamping(9)
go read them. iykyk π₯
so anyway, that's the whole page, periodt π this little cutie lives in ./drivers/soc/tegra, and this rendering was dated October 2026, filed under devm_tegra_pmc_get(9) β love her, mean it, bye 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