STRUCT SX_COMMON_CHIP_INFO(9)
π 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 ofiio_channels. Keeping count, always counting. β¨iio_infoβ theiio_infostructure 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 isstruct sx_common_chip_info(9). Slay. πβ¨
That's the whole thing, fr fr β go forth and read your structs. ππ
π¦ 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