mmc_alloc_host(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

mmc_alloc_host β€” bestie, this is the one that initialises the per-host structure ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

struct mmc_host * mmc_alloc_host (int extra , struct device *dev );

Like, that's the whole vibe rn πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • extra β€” lowkey just sizeof of your private data structure, that's it, that's the whole assignment πŸ’…
  • dev β€” a pointer to the host device model structure, the main character of this whole operation fr fr

🌸 DESCRIPTION 🌸

Okay so picture this: it initialises the per-host structure. That's the tea β˜• No cap, that truly is the entire plot of the function β€” it sets up the per-host structure and hands you back a struct mmc_host *.

We're in the Kernel API Manual by the way, just so you know the ~lore~ 🧚


🌈 SEE ALSO 🌈

Kernel file ./drivers/mmc/core/host.c β€” go read it, it's giving source material πŸ“–

And the whole friend group of related functions, each one iconic in her own right:


mwah πŸ’‹ this page lives in ./drivers/mmc/core, dated October 2026, and the header says mmc_alloc_host(9) in the Kernel API Manual β€” slay, go forth and allocate responsibly 🫢⭐

πŸ“¦ where this page comes from