mmc_alloc_host(9)
π 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 justsizeofof 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:
mmc_retune_enable(9)mmc_retune_disable(9)mmc_of_parse(9)mmc_of_parse_voltage(9)mmc_first_nonreserved_index(9)mmc_add_host(9)mmc_remove_host(9)mmc_free_host(9)
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
- 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