STRUCT RRADC_CHANNEL(9)
๐ NAME ๐
struct rradc_channel โ rradc channel data. Welcome to the Kernel API Manual, bestie; we're about to make this kernel struct make sense, no cap ๐ซถโจ
โจ SYNOPSIS โจ
struct rradc_channel {
const char *label;
u8 lsb;
u8 status;
int size;
int trigger_addr;
int trigger_mask;
int (*scale_fn)(struct rradc_chip *chip, u16 adc_code, int *result);
};
There she is โ the whole struct, every field in place, looking iconic ๐๐
๐ธ Members ๐ธ
labelโ the channel label, aka this channel's little name tag ๐ท๏ธ๐lsbโ the channel least significant byte โ yes, thelsb, she's right there โจstatusโ the channel status address โ where the status address lives, periodt ๐sizeโ the number of bytes to read โ that's the size, bestie, keep it in mind ๐ขtrigger_addrโ the trigger address; heads up: the trigger is only used on some channels ๐๐trigger_maskโ the trigger mask โ iconic little mask behavior ๐ญscale_fnโ a post process callback for channels which can't be exposed asoffset + scaleโ she handles the extra processing for those channels ๐งฎ๐
๐ฆ SEE ALSO ๐ฆ
- Kernel file
./drivers/iio/adc/qcom-spmi-rradc.cโ go read the source, bestie, it's right there ๐๐
mwah ๐ โ signed off from ./drivers/iio/adc, October 2026, all about struct rradc_channel(9) ๐ซถ๐
๐ฆ 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