STRUCT GSC_HWMON_PLATFORM_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

okay so bestie, welcome to the Kernel API Manual page for struct gsc_hwmon_platform_data β€” she's the platform data situation for the gsc_hwmon driver, and honestly? she's lowkey iconic. this is the struct you hand over so the driver knows what it's working with. no cap, very main character energy. ✨


🌸 NAME 🌸

struct gsc_hwmon_platform_data β€” platform data for gsc_hwmon driver πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

not me about to show you the whole vibe. here she is, exactly as she lives in the header β€” do not touch, do not rename, just respect her:

struct gsc_hwmon_platform_data {
    int nchannels;
    unsigned int resolution;
    unsigned int vreference;
    unsigned int fan_base;
    struct gsc_hwmon_channel channels[];
 };

πŸ”₯ Members πŸ”₯

okay so every field, one by one, no skipping, we do not leave members behind in this house 🫢

  • nchannels β€” the number of elements in the channels array. literally the headcount. how many channels are we doing, bestie? 🧚
  • resolution β€” the ADC bit resolution. that's the spicy precision number, iykyk 🌈
  • vreference β€” the voltage reference, measured in mV. yes, millivolts, keep the units, the units are the whole point πŸ’œ
  • fan_base β€” the register base for the FAN controller. the fan's home address, she lives here πŸ’…
  • channels β€” array of gsc_hwmon_channel structures describing channels. one per channel, describing the whole situation, adorable ✨

πŸ‘‘ SEE ALSO πŸ‘‘

go look at these, they're fr fr the references you want:

  • Kernel file ./include/linux/platform_data/gsc_hwmon.h
  • struct gsc_hwmon_channel(9)

aaaand that's the whole page, bestie πŸ’– before you go: this lil writeup comes from ./include/linux/platform_data, dated October 2026 β€” that's the source and the version and the date all wrapped up in a cute little bow πŸŽ€ keep it in your notes, mwah πŸ’‹πŸ₯°

πŸ“¦ where this page comes from