STRUCT MBG_MAP_TABLE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct mbg_map_table(9) πŸ’–

Okay bestie, this is the Kernel API Manual entry for struct mbg_map_table β€” literally the temperature-to-voltage mapping entry. It’s giving β€œsmall struct, important job” energy, and we’re gonna get into every single member. 🫢


🌸 NAME 🌸

struct mbg_map_table β€” temperature to voltage mapping entry


✨ SYNOPSIS ✨

struct mbg_map_table {
    int min_temp;
    int vtemp0;
    int tc;
};

🧚 Members 🧚

  • min_temp β€” the minimum temperature supported by this mapping entry. Like, the floor of the temp range, no cap. 🌑️
  • vtemp0 β€” the reference voltage or ADC code corresponding to the temperature. Your little voltage/ADC bestie for that temp. ⚑
  • tc β€” the temperature coefficient used for conversion calculations. The math-y icon of the group. πŸ”₯

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/thermal/qcom/qcom-spmi-mbg-tm.c, and struct mbg_tm_chip(9) πŸ’œ


Cute little sign-off from the Kernel API Manual: source ./drivers/thermal/qcom, date October 2026, page struct mbg_map_table(9) β€” periodt, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from