STRUCT VOLTAGE_DEVICE(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’– struct voltage_device(9) ๐Ÿ’–

okay so bestie, welcome to the voltage_device era โœจ this is a Kernel API Manual page, and it's literally all about VM single input parameters. yes ma'am, that's the whole vibe ๐ŸŽ€


๐ŸŒธ SYNOPSIS ๐ŸŒธ

struct voltage_device {
    u32 vm_map;
    u32 ch_map;
    u32 pre_scaler;
 };

๐Ÿ‘‘ Members ๐Ÿ‘‘

  • vm_map โ€” maps a channel number to a VM index. that's it, that's the job ๐Ÿ’…
  • ch_map โ€” maps a channel number to a channel index. lowkey essential fr fr ๐ŸŒŸ
  • pre_scaler โ€” the pre scaler value (it's 1 or 2), used to normalize the voltage output result. highkey important for the math ๐Ÿงฎโœจ

๐Ÿฆ‹ Description ๐Ÿฆ‹

so the structure provides the mapping between channel-number (0..N-1) and VM-index (0..num_vm-1) plus channel-index (0..ch_num-1), where N = num_vm * ch_num โ€” the way that little equation ties it all together is iconic ngl ๐Ÿ”ฅ

it also provides the normalization factor for the VM equation. slay, math queen ๐Ÿ‘‘๐Ÿ’–


๐Ÿ’œ SEE ALSO ๐Ÿ’œ

  • Kernel file ./drivers/hwmon/mr75203.c
  • struct voltage_channels(9)

๐Ÿซถ quick reminder bestie: keep those member names exactly as written, no cap โ€” they're u32 and they're not gonna spell themselves ๐Ÿ’…

anywayyy, that's the whole read ๐ŸŒˆ run it, love it, cite it in your patch notes ๐Ÿ’€ this page lives in ./drivers/hwmon, dated October 2026, and it's signing off with a little kiss from the kernel-source vibe check ๐ŸŽ€โœจ๐Ÿฆ‹ bye bestie ๐Ÿ’–

๐Ÿ“ฆ where this page comes from