__mmc_switch(9)
π __mmc_switch(9) π
okay so bestie, welcome to the Kernel API Manual β we're looking at __mmc_switch(9), and she's literally the function that modifies the EXT_CSD register. main character energy for MMC cards, no cap. π
π NAME π
__mmc_switch β modify EXT_CSD register. that's the whole vibe: one function, one register glow-up. β¨
β¨ SYNOPSIS β¨
int __mmc_switch (struct mmc_card *card , u8 set , u8 index , u8 value ,
unsigned int timeout_ms , unsigned char timing , bool send_status , bool
retry_crc_err , unsigned int retries );
π ARGUMENTS π
cardβ the MMC card associated with the data transfer. she's the main character here, obviously. π³setβ cmd set values. yep, exactly what it says.indexβ EXT_CSD register index. this is the lil address situation.valueβ value to program into the EXT_CSD register. the actual content going in.timeout_msβ timeout in milliseconds for the operation performed by the register write. a timeout of zero implies the maximum possible timeout β so bestie, zero does not mean "instant", it means "wait as long as possible". πtimingβ new timing to change to. glow-up timing, basically.send_statusβ send a status cmd to poll for busy. yes, we're checking if she's still working.retry_crc_errβ retry when there are CRC errors when polling withCMD13for busy. because sometimes the vibe check fails and we try again. πretriesβ number of retries. literally how many do-overs you get.
π¦ DESCRIPTION π¦
Modifies the EXT_CSD register for the selected card. that's it, that's the function β pick a card, write the register, keep it cute. no extra lore needed. β¨
π SEE ALSO π
- Kernel file
./drivers/mmc/core/mmc_ops.c mmc_interrupt_hpi(9)mmc_run_bkops(9)mmc_read_tuning(9)
go read those if you want the full friend-group lore. iykyk. π«Ά
xoxo, your kernel bestie π β source/version: ./drivers/mmc/core, dated October 2026. periodt. π
π¦ 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