STRUCT DRV2667_DATA(9)
π struct drv2667_data β Kernel API Manual (yes bestie, we're in the kernel now)
okay so picture this: it's a struct in the kernel, it's called drv2667_data, and it's literally the main character of the DRV2667 driver's private data. it holds everything the driver needs to keep track of β the input device, the I2C client, the regmap, a work item, a regulator, and some vibration numbers. no cap, it's giving "glorified backpack of pointers." π
β¨ SYNOPSIS β¨
struct drv2667_data {
struct input_dev *input_dev;
struct i2c_client *client;
struct regmap *regmap;
struct work_struct work;
struct regulator *regulator;
u32 page;
u32 magnitude;
u32 frequency;
};
like, that's the whole vibe right there π«Ά
πΈ Members πΈ
input_devβ pointer to the input device. the thing that actually goes "buzz buzz" at the userspace, iykyk.clientβ pointer to the I2C client. that's our little chat line to the chip itself π¬regmapβ register map of the device. all the chip's registers, neatly tucked into one struct so we're not out here doing raw i2c pokes like some kind of gremlin.workβ a work item used to off load the enable/disable of the vibration. i.e. we do the on/off thing from a workqueue instead of blocking wherever we happen to be β¨regulatorβ pointer to the regulator for the IC. someone's gotta keep the power situation iconic πpageβ page number.u32. it's a page. of the chip's register space. slay.magnitudeβ magnitude of the vibration event.u32. how much buzz π₯frequencyβ frequency of the vibration event.u32. how fast the buzz π«
ngl, this struct is basically a vibe check for the whole driver β every field is apointeror au32and nothing is complicated. periodt.
π SEE ALSO π
- Kernel file
./drivers/input/misc/drv2667.cβ go read the source bestie, that's where all the actual lore lives π
and that's the whole page!! π this gem comes to you from ./drivers/input/misc, dated October 2026, and it's filed under struct drv2667_data(9) β mwah π no thoughts, just kernel structs π
π¦ 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