STRUCT PAC1934_CHIP_INFO(9)
π struct pac1934_chip_info(9) π
okay so this is a page straight out of the Kernel API Manual β yes bestie, the kernel has lore too β and it's all about struct pac1934_chip_info, which is, like, the lil info packet for the chip. the whole personality of this struct is just "I know things about the chip" and honestly? main character energy. π
β¨ NAME β¨
struct pac1934_chip_info β information about the chip. that's it, that's the vibe. it's the struct that holds the tea about the chip. π
πΈ SYNOPSIS πΈ
struct pac1934_chip_info {
struct i2c_client *client;
struct mutex lock;
struct delayed_work work_chip_rfsh;
u8 phys_channels;
bool active_channels[PAC1934_MAX_NUM_CHANNELS];
bool enable_energy[PAC1934_MAX_NUM_CHANNELS];
bool bi_dir[PAC1934_MAX_NUM_CHANNELS];
u8 chip_variant;
u8 chip_revision;
u32 shunts[PAC1934_MAX_NUM_CHANNELS];
struct reg_data chip_reg_data;
s32 sample_rate_value;
char *labels[PAC1934_MAX_NUM_CHANNELS];
struct iio_info iio_info;
unsigned long tstamp;
};
look at her. perfectly aligned fields, not a single typo, we stan a tidy struct. π
π¦ Members π¦
okay now the part you actually came for β every single member, no skipping, no cap:
clientβ the i2c-client that's attached to the device. the whole reason she's here tbh. π«lockβ a mutex that synchronizes access to the driver's state members. lowkey the bouncer at the club: nobody touches the state without going through her first. πwork_chip_rfshβ the work queue used for refresh commands. she's the one doing the lil come-through-and-refresh shifts. π§phys_channelsβ phys channels count. just the number, bestie. π’active_channelsβ an array of values, wheretruemeans that channel is active. it's giving attendance sheet. βenable_energyβ an array of values, wheretruemeans that channel's energy is measured. energy check: passed. β‘bi_dirβ an array of bools, wheretruemeans that channel is bidirectional. she swings both ways (directionally). πchip_variantβ chip variant. the flavor, if you will. π¦chip_revisionβ chip revision. the version lore. πshuntsβ shunts. iconic, unexplained, present. π«Άchip_reg_dataβ chip reg data. it's astruct reg_data, she contains multitudes. πsample_rate_valueβ sampling frequency. how often she's sampling the tea. π΅labelsβ table with channels labels. name tags but make it array. π·οΈiio_infoβiio_info. does exactly what it says on the tin, no notes. πtstampβ the chip's uptime. her personal "how long have I been awake" clock. β°
π₯ SEE ALSO π₯
- the Kernel file
./drivers/iio/adc/pac1934.c struct pac1934_features(9)struct reg_data(9)
ngl bestie, if you're poking at the driver state without holding lock, that's not slay, that's a race condition. protect her. π
and that's the page!! π it lives over in ./drivers/iio/adc and the footer's dated October 2026 β so like, from the future, cute. this remake of struct pac1934_chip_info(9) was brought to you with love, and the whole thing is kernel API manual certified. 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