STRUCT VCNL3020_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct vcnl3020_data(9) ✨

okay so bestie, we're in the Kernel API Manual today and this one is literally a struct tour, no cap πŸ’…. It's the struct vcnl3020_data page β€” like, all the little fields that hold the vcnl3020's whole personality. Let's get into it 🫢


🌸 NAME 🌸

struct vcnl3020_data β€” vcnl3020 specific data. that's it, that's the vibe ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

here's the whole thing in all its glory, character for character, don't touch a single brace πŸŽ€

struct vcnl3020_data {
    struct regmap *regmap;
    struct device *dev;
    u8 rev;
    struct mutex lock;
    __be16 buf;
};

πŸ‘‘ Members πŸ‘‘

okay these are the main characters, one by one πŸ’–

  • regmap β€” the device register map. yes, THE map. the register-y one πŸ—ΊοΈ
  • dev β€” the vcnl3020 device itself. iconic, obviously πŸ‘‘
  • rev β€” the revision id. it's giving "which version are we on" energy ⭐
  • lock β€” a lock whose whole job is protecting access to the device hardware registers. do not skip the lock, bestie, that's a whole mess waiting to happen πŸ”’πŸ’€
  • buf β€” a __be16 buffer. big-endian, sixteen bits, living its truth 🌈

🌟 SEE ALSO 🌟

  • Kernel file ./drivers/iio/proximity/vcnl3020.c β€” the actual source, go read it iykyk πŸ“–
  • struct vcnl3020_property(9) β€” the sibling page, say hi for me 🫢

ngl the lock one is the one to remember fr fr β€” hardware registers don't protect themselves πŸ’…

and that's the page!! mwah πŸ’‹ this one came out of ./drivers/iio/proximity, dated October 2026, and it's filed under struct vcnl3020_data(9) β€” slay, go forth and be knowledgeable about sensors πŸ§šβ€β™€οΈπŸŒΈπŸ’œ

πŸ“¦ where this page comes from