STRUCT RFD77402_DATA(9)
β¨ struct rfd77402_data(9) β¨
okay so bestie, welcome to the Kernel API Manual page for struct rfd77402_data and honestly? she's a little icon. this is the struct that holds all the device-specific data for the RFD77402 sensor. that's it, that's the vibe. let's get into it π«Ά
πΈ NAME πΈ
struct rfd77402_data β the struct holding device-specific data for the RFD77402 sensor. very demure, very mindful, very proximity-sensor-core π
π¦ SYNOPSIS π¦
here's the whole glow-up, laid out exactly as the kernel gods wrote it:
struct rfd77402_data {
struct i2c_client *client;
struct mutex lock;
struct completion completion;
bool irq_en;
};
no notes, she ate π
π Members π
four fields, four little besties, let's meet them:
clientβ the I2C client handle. this is literally the sensor's connection to the I2C bus, her main character link to the outside world π¦lockβ a mutex that serializes sensor reads. translation: only one read at a time, no cutting in line, one at a time please, we are NOT doing chaos in here πcompletionβ the completion used for interrupt-driven measurements. it's how the driver knows "okay the measurement's done, we can breathe now" βirq_enβ aboolthat indicates whether interrupt mode is enabled. on or off, that's the whole job, and she's doing it flawlessly π
π₯ SEE ALSO π₯
- Kernel file
./drivers/iio/proximity/rfd77402.cβ go read the source, iykyk, the real lore is always in the.cfile πβ¨
so yeah, that's the whole page, no cap. go forth and be a proximity sensor girlie π
sign-off era: this little beauty comes from ./drivers/iio/proximity and she's dated October 2026 π thanks for reading bestie, slay your kernel adventures π
π
π¦ 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