STRUCT RFD77402_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 β€” a bool that 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 .c file πŸ“–βœ¨

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