STRUCT MLXREG_HOTPLUG_PRIV_DATA(9)
π struct mlxreg_hotplug_priv_data π
okay bestie, welcome to the Kernel API Manual page for struct mlxreg_hotplug_priv_data β aka the platform private data struct, and honestly? she's giving quiet main character energy β¨
πΈ NAME πΈ
struct mlxreg_hotplug_priv_data β the platform private data: like, the whole struct, and yes the colon at the end is canon, we don't question the original π
π¦ SYNOPSIS π¦
struct mlxreg_hotplug_priv_data {
int irq;
struct device *dev;
struct platform_device *pdev;
struct mlxreg_hotplug_platform_data *plat;
struct regmap *regmap;
struct delayed_work dwork_irq;
spinlock_t lock;
struct device *hwmon;
struct attribute *mlxreg_hotplug_attr[MLXREG_HOTPLUG_ATTRS_MAX + 1];
struct sensor_device_attribute_2
mlxreg_hotplug_dev_attr[MLXREG_HOTPLUG_ATTRS_MAX];
struct attribute_group group;
const struct attribute_group *groups[2];
u32 cell;
u32 mask;
u32 aggr_cache;
bool after_probe;
u8 not_asserted;
};
(yes the mlxreg_hotplug_dev_attr line wraps like that in the original β we do not edit the queen's outfit π
)
π Members π
irqβ the platform device interrupt number, like the doorbell number for this device fr fr πdevβ the basic device, the plain one, the foundation bestie π«Άpdevβ the platform device, its more specific sibling β¨platβ the platform data, all the config vibes πregmapβ the register map handle, your little key to the registers πdwork_irqβ a delayed work template, scheduling things for later, very "i'll deal with it tmrw" πlockβ a spin lock, protecting the goods βhwmonβ the hwmon device, hardware monitoring representation π‘οΈmlxreg_hotplug_attrβ the sysfs attributes array πmlxreg_hotplug_dev_attrβ the sysfs sensor device attribute array, the fancy sensor-flavoured one πgroupβ a sysfs attribute group, vibes grouped together for convenience π§groupsβ the list of sysfs attribute group for hwmon registration, yes plural, yes for hwmon πcellβ location of top aggregation interrupt register, the coordinate of the big one πmaskβ top aggregation interrupt common mask, the shared filter πaggr_cacheβ last value of aggregation register status, like a screenshot of the register's previous mood πΈafter_probeβ flag indication probing completion, did the probe finish or not, the plot twist marker π₯not_assertedβ number of entries in workqueue with no signal assertion, literally a count of queue entries chilling without their signal π
π SEE ALSO π
- Kernel file
./drivers/platform/mellanox/mlxreg-hotplug.cβ go read the source, iykyk π
and that's the whole page diva π no cap, that's every member, every type, every array bound β MLXREG_HOTPLUG_ATTRS_MAX + 1 and MLXREG_HOTPLUG_ATTRS_MAX and groups[2] all accounted for π
later bestie ~ this cutie came from ./drivers/platform/mellanox, dated October 2026, and it's filed under struct mlxreg_hotplug_priv_data(9) in the Kernel API Manual ππ
π¦ 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