STRUCT MLXREG_CORE_HOTPLUG_NOTIFIER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 at MLXREG_CORE_LABEL_MAX_SIZE characters πŸ’–
  • handle β€” a user handle that gets passed along by the user handler function 🫢 it's literally just a void *, so it can be whatever you need it to be, iykyk
  • user_handler β€” the user handler function that's associated with the event 🌈 its signature is int (*user_handler)(void *handle, enum mlxreg_hotplug_kind kind, u8 action), so it takes your handle, the enum mlxreg_hotplug_kind of the event, and a u8 action, and hands you back an int ⭐ 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