STRUCT MLXREG_HOTPLUG_PRIV_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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