mmc_remove_host(9)
π mmc_remove_host (9) β Kernel API Manual β¨
okay so bestie, grab your strawberry matcha π because we're talking about the kernel API manual today, and this one is literally the "bye bitch, we're closing the venue" function of the MMC world. it lives in section 9, it's called mmc_remove_host, and it's giving cleanup-era main character energy π
πΈ NAME πΈ
mmc_remove_host β remove host hardware. that's it, that's the vibe. it takes the host hardware and it removes it. no cap. π«Ά
β¨ SYNOPSIS β¨
void mmc_remove_host (struct mmc_host *host );
look at her. void, so she doesn't return anything to you β don't go expecting a little report card, she's not that kind of function π and she takes exactly one thing: a pointer to a struct mmc_host.
π ARGUMENTS π
hostβ mmc host. that's the one and only thing you hand over. it's the mmc host. yes, that's the whole description, and honestly? iconic. minimalism. π
π¦ DESCRIPTION π¦
so here's what actually goes down when you call her, bestie, and it's a lot π₯
she unregisters and removes all cards associated with this host β not some, not a few, all of them, like a group chat purge β and then she powers down the MMC bus. lights off, doors locked, party over π
and the important bit, the part you should tattoo on your brain: no new requests will be issued after this function has returned. so once she's back, that host is done taking requests. periodt. do not try to sneak one in afterwards π
π SEE ALSO π
- Kernel file
./drivers/mmc/core/host.c mmc_retune_enable(9)mmc_retune_disable(9)mmc_of_parse(9)mmc_of_parse_voltage(9)mmc_first_nonreserved_index(9)mmc_alloc_host(9)mmc_add_host(9)mmc_free_host(9)
like, the whole friend group honestly π«Ά go read those too, iykyk.
and that's the page, bestie!! this lil gem comes from ./drivers/mmc/core, dated October 2026 β so go forth, remove that host, and slay the cleanup πβ¨
π¦ 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