mmc_set_data_timeout(9)
β¨ mmc_set_data_timeout β¨
Hey bestie, welcome to the Kernel API Manual page for mmc_set_data_timeout π This is a little function that handles data-command timeouts, and honestly? It's giving "quietly vital" energy. Let's get into it π«Ά
πΈ NAME πΈ
mmc_set_data_timeout β set the timeout for a data command β°
π SYNOPSIS π
void mmc_set_data_timeout (struct mmc_data *data , const struct mmc_card
*card );
Okay so it takes two things, and it returns void (so like, no return value, she just does her job and dips π
).
π¦ ARGUMENTS π¦
dataβ the data phase for the command. This is the struct she's going to poke at and fill in with timeout info β¨cardβ the MMC card associated with the data transfer. Basically, the card whose type determines which algorithm gets used π
π₯ DESCRIPTION π₯
So what does she actually do? She computes the data timeout parameters according to the correct algorithm, given the card type. That's it, that's the whole vibe β different card types, correct algorithm, timeout parameters set. Lowkey iconic that a one-liner description can carry so much weight πβ¨
No cap, if you're handing her a data struct and the matching card, she's going to sort out the timeout situation for you. Periodt π
π SEE ALSO π
If you wanna go deeper (and honestly, why wouldn't you π), check out the kernel file ./drivers/mmc/core/core.c and all these fellow function besties:
mmc_request_done(9)mmc_cqe_request_done(9)mmc_cqe_post_req(9)mmc_is_req_done(9)mmc_wait_for_req(9)mmc_wait_for_cmd(9)__mmc_claim_host(9)mmc_release_host(9)mmc_vdd_to_ocrbitnum(9)mmc_vddrange_to_ocrmask(9)mmc_handle_undervoltage(9)mmc_detect_change(9)mmc_erase(9)mmc_hw_reset(9)
Literally a whole friend group of MMC functions, iykyk π§ββοΈ
π‘ Reminder for the girlies in the back: this lives under ./drivers/mmc/core, so that's your hotspot if you're snooping around the source π΅οΈββοΈ
And that's the whole page, bestie! No notes, she ate πΈ
Sign-off cuteness: this gem comes from the Kernel API Manual, dated October 2026, and it's filed under ./drivers/mmc/core β copy that into your notes and slay the day πβ¨π
π¦ 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