STRUCT SX_COMMON_CHIP_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ struct sx_common_chip_info(9) β€” the Kernel API Manual, bestie edition πŸ’…

Okay so this is the inside scoop on struct sx_common_chip_info β€” literally the Semtech Sensor private chip information and the main character of this whole page. It's from the Kernel API Manual, section 9, and yes she's serving documentation realness today. πŸŽ€


✨ SYNOPSIS ✨

struct sx_common_chip_info {
    unsigned int reg_stat;
    unsigned int reg_irq_msk;
    unsigned int reg_enable_chan;
    unsigned int reg_reset;
    unsigned int mask_enable_chan;
    unsigned int stat_offset;
    unsigned int irq_msk_offset;
    unsigned int num_channels;
    int num_default_regs;
    struct sx_common_ops ops;
    const struct iio_chan_spec *iio_channels;
    int num_iio_channels;
    struct iio_info iio_info;
 };

Like, that's the whole struct. Every field. No skips, no "etc." β€” we don't do that here. πŸ’–


πŸ¦‹ Members πŸ¦‹

Okay bestie, let's go field by field, because every single one of these matters and I refuse to leave anyone out. 🌸

  • reg_stat β€” the address of the main status register. Like, the big one. The status girlie. πŸ‘‘
  • reg_irq_msk β€” the address of the IRQ mask register.
  • reg_enable_chan β€” the address you use to enable/disable channels. And listen: each phase presented by the sensor is an IIO channel, okay? That's the vibe. πŸ’«
  • reg_reset β€” the address of the reset register.
  • mask_enable_chan β€” the mask over the channels bits in the enable channel register. Masking, but make it fashion. πŸ’…
  • stat_offset β€” the offset you check the phase status at.
  • irq_msk_offset β€” the offset to enable the interrupt in the IRQ mask register.
  • num_channels β€” the number of channels. That's it, that's the field. πŸ”’
  • num_default_regs β€” the number of internal registers that can be configured.
  • ops β€” private function pointers. The backstage crew, if you will. 🫢
  • iio_channels β€” the description of the exposed iio channels.
  • num_iio_channels β€” the number of iio_channels. Keeping count, always counting. ✨
  • iio_info β€” the iio_info structure for this driver. Iconic, no notes.

🌈 SEE ALSO 🌈

Go check out the Kernel file ./drivers/iio/proximity/sx_common.h, plus besties struct sx_common_ops(9) and struct sx_common_data(9) β€” they're all in the group chat together, iykyk. πŸ¦‹


ngl this page lives in ./drivers/iio/proximity, dated October 2026, and its full name is struct sx_common_chip_info(9). Slay. πŸ’€βœ¨

That's the whole thing, fr fr β€” go forth and read your structs. πŸ“πŸ’œ

πŸ“¦ where this page comes from