STRUCT MLXREG_CORE_HOTPLUG_NOTIFIER(9)
β¨ struct mlxreg_core_hotplug_notifier β hotplug notifier block π
okay so bestie, welcome to the Kernel API Manual π and lemme tell you, this little struct is giving "small but mighty" β¨ it's literally the hotplug notifier block, and we're gonna go through it together, no cap π«Ά
πΈ NAME πΈ
struct mlxreg_core_hotplug_notifier β hotplug notifier block, periodt π
β¨ SYNOPSIS β¨
like, here's the whole vibe of the thing, copy-pasted with love π¦
struct mlxreg_core_hotplug_notifier {
char identity[MLXREG_CORE_LABEL_MAX_SIZE];
void *handle;
int (*user_handler)(void *handle, enum mlxreg_hotplug_kind kind, u8
action);
};
she's structured, she's iconic, she has exactly three fields and we're obsessed π
π§ Members π§
identityβ the notifier's identity name π·οΈ like her little name tag at the kernel party, maxed out atMLXREG_CORE_LABEL_MAX_SIZEcharacters πhandleβ a user handle that gets passed along by the user handler function π«Ά it's literally just avoid *, so it can be whatever you need it to be, iykykuser_handlerβ the user handler function that's associated with the event π its signature isint (*user_handler)(void *handle, enum mlxreg_hotplug_kind kind, u8 action), so it takes yourhandle, theenum mlxreg_hotplug_kindof the event, and au8 action, and hands you back anintβ that's the main character of this struct fr fr
π SEE ALSO π
go check out the kernel file ./include/linux/platform_data/mlxreg.h for the full lore π and while you're at it, these besties are all in the same friend group πΈ
enum mlxreg_wdt_type(9)enum mlxreg_hotplug_kind(9)enum mlxreg_hotplug_device_action(9)struct mlxreg_hotplug_device(9)struct mlxreg_core_data(9)struct mlxreg_core_item(9)struct mlxreg_core_platform_data(9)struct mlxreg_core_hotplug_platform_data(9)
π reminder bestie: all of this lives under ./include/linux/platform_data and the whole thing is dated October 2026 β¨ yes, she's from the future, don't question it π
slay, that's the whole page π mwah, go write some notifiers πππ¦
π¦ 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