omap_voltage_get_voltdata(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… omap_voltage_get_voltdata β€” Kernel API Manual ✨

okay bestie, so this one lives in the Kernel API Manual, and it's literally the little lookup goblin for OMAP voltages 🧚


🌸 NAME 🌸

omap_voltage_get_voltdata β€” the API that gets you the voltage table entry for a particular voltage πŸŽ€


✨ SYNOPSIS ✨

struct omap_volt_data * omap_voltage_get_voltdata (struct voltagedomain
*voltdm , unsigned long volt );

like, that's the whole vibe. she takes two things and hands you back a pointer πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • voltdm β€” pointer to the VDD whose voltage table has to be searched πŸ‘‘ you're telling her which table to go digging in
  • volt β€” the voltage to be searched in the voltage table πŸ” the actual number you're hunting for

πŸ’– DESCRIPTION πŸ’–

so here's the tea πŸ“ this API searches through the voltage table for the required voltage domain and tries to find a matching entry for the passed voltage volt. If a matching entry is found, volt_data is populated with that entry β€” like, she found it and she's handing it over 🫢

⚠️ important caveat bestie: this API searches only through the non-compensated voltages in the voltage table. no cap, that's the whole scope. don't go expecting compensated stuff in there πŸ’€

Returns a pointer to the voltage table entry corresponding to volt on success πŸ”₯

Returns -ENODATA if no voltage table exists for the passed voltage domain, or if there is no matching entry 😭 (yes, both of those give you the same error, she's not gonna elaborate further)


🌈 SEE ALSO 🌈

Kernel file ./arch/arm/mach-omap2/voltage.c plus the whole friend group:


aaaand that's the page, bestie πŸ’œ this icon dropped under ./arch/arm/mach-omap2 in October 2026 β€” go forth and look up those voltages, ilysm πŸŽ€βœ¨

πŸ“¦ where this page comes from