STRUCT MLXREG_CORE_HOTPLUG_PLATFORM_DATA(9)
๐ struct mlxreg_core_hotplug_platform_data(9) โ the Kernel API Manual glow-up โจ
okay so bestie, welcome to the Kernel API Manual โ yes that's the manual we're in, and today's main character is struct mlxreg_core_hotplug_platform_data, aka hotplug platform data ๐ซถ. It's a struct, it holds platform data, and it's giving "I know where all the hotplug components live" energy. Let's get into it ๐
โจ NAME โจ
struct mlxreg_core_hotplug_platform_data โ hotplug platform data: literally that, no cap ๐
๐ธ SYNOPSIS ๐ธ
here's the whole struct, character for character, do not touch, we respect the source ๐
struct mlxreg_core_hotplug_platform_data {
struct mlxreg_core_item *items;
int irq;
void *regmap;
int count;
u32 cell;
u32 mask;
u32 cell_low;
u32 mask_low;
int deferred_nr;
int shift_nr;
void __iomem *addr;
void *handle;
int (*completion_notify)(void *handle, int id);
};
๐ Members ๐
every single one of them, in order, because we do not skip ๐
itemsโ the same-type components that have the hotplug capability. like, the whole squad that can hotplug โจirqโ the platform interrupt number. it's the number ๐ฅregmapโ the register map of the parent device, lowkey essential ๐countโ how many components have the hotplug capability. the headcount, basically ๐งcellโ where the top aggregation interrupt register lives ๐maskโ the top aggregation interrupt common mask. masky masky ๐cell_lowโ where the low aggregation interrupt register lives ๐ (but low)mask_lowโ the low aggregation interrupt common mask ๐ซdeferred_nrโ the I2C adapter number must exist prior to probing execution. it's giving "I need you to exist first", non-negotiable ๐ซถshift_nrโ the I2C adapter numbers must be incremented by this value. math but make it kernel ๐งฎaddrโ the mapped resource address ๐บ๏ธhandleโ the handle that gets passed by the callback. yes, that handle ๐completion_notifyโ a callback to notify when platform driver probing is done ๐ it's literallyint (*completion_notify)(void *handle, int id), so it takes avoid *handleand anint id, and it returns anint. icon behaviour ๐
๐ SEE ALSO ๐
the whole friend group, no member left behind ๐
Kernel file ./include/linux/platform_data/mlxreg.h
- enum
mlxreg_wdt_type(9) - enum
mlxreg_hotplug_kind(9) - enum
mlxreg_hotplug_device_action(9) - struct
mlxreg_core_hotplug_notifier(9) - struct
mlxreg_hotplug_device(9) - struct
mlxreg_core_data(9) - struct
mlxreg_core_item(9) - struct
mlxreg_core_platform_data(9)
bestie reminder: the I2C adapter number in deferred_nr has to already exist before probing runs โ this isn't a vibe suggestion, it's in the docs ๐
okay that's the whole page, you ate that ๐
โจ โ this masterpiece lives in ./include/linux/platform_data and it's dated October 2026, so yeah, ahead of its time fr fr ๐ฆ๐๐
๐ฆ 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