sysmon_parse_fw(9)
π NAME π
okay so bestie, welcome to sysmon_parse_fw(9) from the Kernel API Manual β this page is literally about parsing firmware nodes and configuring IIO channels, and it ate. β¨
sysmon_parse_fw β Parse firmware nodes and configure IIO channels. π
periodt.
β¨ SYNOPSIS β¨
int sysmon_parse_fw (struct iio_dev *indio_dev , struct device *dev ,
int irq );
π ARGUMENTS π
indio_devβ IIO device instance π¦devβ Parent device πΈirqβ IRQ number: positive enables event channels,0disables π
π DESCRIPTION π
the way that this function reads the voltage-channels and temperature-channels container nodes from firmware and builds the IIO channel array β iconic, no cap. Static temperature channels and event channels are prepended, followed by supply and satellite channels from DT. π«Ά
π¨ real talk, bestie: event channels and per-channel event specs are only added when the device has an IRQ. I2C devices have no interrupt line, and the I2C regmap cannot be called from atomic context, so events are not supported on that path. not me being dramatic about a technical caveat, but fr fr β that's the rule. π
π₯ RETURN π₯
0 on success, negative errno on failure. slay. π
π¦ SEE ALSO π¦
- Kernel file
./drivers/iio/adc/versal-sysmon-core.cβ¨ devm_versal_sysmon_core_probe(9)π
okay that's the whole page, bestie π«Ά β the footer says source/version ./drivers/iio/adc, dated October 2026, and honestly? iconic. 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