sysmon_parse_fw(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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, 0 disables πŸ‘‘

🌈 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 πŸ¦‹


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