mmc_wait_for_cmd(9)
π mmc_wait_for_cmd(9) π
okay so bestie, this is a page straight out of the Kernel API Manual (yes, the kernel has a manual, and yes it's iconic) and today's main character is mmc_wait_for_cmd. she starts a command and then waits for it to finish. patient queen behavior. π
β¨ NAME β¨
mmc_wait_for_cmd β start a command and wait for completion π
πΈ SYNOPSIS πΈ
int mmc_wait_for_cmd (struct mmc_host *host , struct mmc_command *cmd ,
int retries );
literally that's the whole signature, no cap. π«Ά
π¦ ARGUMENTS π¦
hostβ the MMC host you're starting the command on. the venue, if you will. ποΈcmdβ the MMC command itself. the star of the show. βretriesβ the maximum number of retries. how many chances you're willing to give it before you're like "ok bestie, that's enough." π
π DESCRIPTION π
Start a new MMC command for a host, and wait for the command to complete. that's it, that's the vibe. π
Return any error that occurred while the command was executing. so if it flopped, you will hear about it. π
Do not attempt to parse the response. ok this is the important part β do NOT go poking at the response, that's not your job here. this function is not giving "analyze the results" energy, it's giving "did it finish, yes or no" energy. stay in your lane, respectfully. π«π
π SEE ALSO π
Kernel file ./drivers/mmc/core/core.c, plus the whole friend group:
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_set_data_timeout(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)
and that's the page!! π§π this little cutie lives in ./drivers/mmc/core and the version we're stanning is from October 2026. go forth and wait for your commands, bestie β patiently, and without parsing the response. 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