mmc_erase(9)
π mmc_erase β the kernel API manual, bestie edition
okay so real talk, this page is mmc_erase(9) from the Kernel API Manual, and it's literally the glow-up your block-erasing era needed β¨
πΈ NAME πΈ
mmc_erase β erase sectors. that's it. that's the whole vibe. it deletes stuff on purpose and we respect her for it π
π SYNOPSIS π
int mmc_erase (struct mmc_card *card , sector_t from , unsigned int nr ,
unsigned int arg );
like, she takes four things and she returns an int, and honestly? iconic. lowkey the cleanest signature in the whole MMC core. no notes π«Ά
π¦ ARGUMENTS π¦
cardβ the card to erase. yes that card. the one you're about to do crimes on π this is astruct mmc_card *.fromβ first sector to erase. asector_t. this is where the erasing starts, bestie, so pick it wisely.nrβ number of sectors to erase. anunsigned int. count 'em, don't guess 'em.argβ erase command argument. alsounsigned int. this is the thing you hand to the erase command. iykyk.
β¨ DESCRIPTION β¨
π¨ MAIN CHARACTER WARNING π¨
Caller must claim host before calling this function.
that's it. that's the entire description. she said "claim your host, then talk to me." no cap, no elaboration, no extra lore. the whole paragraph is one sentence and it is carrying the entire weight of this manpage on its shoulders π
so like β go claim the host first (__mmc_claim_host(9) is right down there in SEE ALSO if you need her π) and then come back and erase your sectors. don't skip this. this is not a drill. this is not a suggestion. periodt. π
π SEE ALSO π
Kernel file ./drivers/mmc/core/core.c β that's where the source lives, go read it, it's giving homework but make it fun π
and all the besties you might also need:
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_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_hw_reset(9)
π that's the whole page π
shoutout to ./drivers/mmc/core for being the directory this whole situation lives in, and to October 2026 for the date stamp, and to mmc_erase(9) for being the manual page itself β we stan a self-referential queen ππ bye bestie, go erase 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