STRUCT SLF3S_DATA(9)
π struct slf3s_data β per-device state π
okay so bestie, welcome to the struct slf3s_data page from the Kernel API Manual β¨ this is the little per-device state bundle that keeps track of, like, everything one SLF3S chip needs to remember about itself. it's giving "main character energy" but for a single I2C device π«Ά
β¨ SYNOPSIS β¨
struct slf3s_data {
struct i2c_client *client;
struct regulator *vdd;
const struct slf3s_variant *variant;
enum slf3s_medium medium;
struct mutex lock;
u8 crc_table[CRC8_TABLE_SIZE];
};
no cap, that's the whole struct π copy it exactly, don't go "fixing" the indentation, the compiler does not care about your aesthetic β¨
π Members π
clientβ the I2C client this instance is bound to π₯ like, the actual connection this whole vibe is attached to.vddβ the supply regulator, and it's disabled while suspended π΄ so yeah, it goes to sleep when the system does.variantβ a pointer intoslf3s_variantsfor the detected device π iykyk, it's the "which chip are we even talking to" pointer.mediumβ the currently active calibration medium π§ͺ literally the current calibration vibe.lockβ a mutex that serialises the multi-step command/response exchanges π because those exchanges are a whole conversation and you canNOT have two people talking at once, periodt.crc_tableβ the pre-computed CRC-8 lookup table forSLF3S_CRC8_POLYπ already calculated, already iconic, no runtime math needed.
π¦ SEE ALSO π¦
Kernel file ./drivers/iio/flow/slf3s.cβ go read the source, bestie, it's right there πstruct slf3s_variant(9)β the variant page, obviously π
and that's the whole page, bestie π this one came from ./drivers/iio/flow and it's dated October 2026 β slay, go forth and reference structs responsibly π
β¨πΈ
π¦ 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