STRUCT MMC_SLOT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

struct mmc_slot β€” MMC slot functions. That's the whole vibe, bestie: it's the struct situation for MMC slot functions. πŸ’–

✨ SYNOPSIS ✨

struct mmc_slot {
    int cd_irq;
    bool cd_wake_enabled;
    void *handler_priv;
};

πŸ’… Members πŸ’…

  • cd_irq β€” the MMC/SD-card slot hotplug detection IRQ, or -EINVAL. That's the member, no cap. ⚑
  • cd_wake_enabled β€” it's in the struct as a bool; this page doesn't give it its own separate description, so we are not inventing extra lore, periodt. 🫢
  • handler_priv β€” the MMC/SD-card slot context. Your little context stash. πŸŽ€

πŸ¦‹ Description πŸ¦‹

Okay so picture this: some MMC/SD host controllers implement slot-functions like card and write-protect detection natively. Iconic of them, honestly. πŸ’… But a large number of controllers leave these functions to the CPU β€” and that's where this struct comes in. It provides a hook to attach such slot-function drivers. That's the whole point, fr fr. ✨

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./include/linux/mmc/host.h β€” go read it, iykyk. πŸ“–

mwah πŸ’‹ β€” source/version ./include/linux/mmc, dated October 2026, and we're talking about struct mmc_slot(9). 🌈

πŸ“¦ where this page comes from