STRUCT GSC_HWMON_PLATFORM_DATA(9)
π 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 thechannelsarray. 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 ofgsc_hwmon_channelstructures 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
- 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