mmc_gpiod_set_cd_config(9)
π mmc_gpiod_set_cd_config(9) β¨
okay so bestie, welcome to the Kernel API Manual π β this page is all about mmc_gpiod_set_cd_config, and honestly? she's a tiny little function with main character energy. let's get into it π«Ά
β¨ NAME β¨
mmc_gpiod_set_cd_config β set config for card-detection GPIO π³π
πΈ SYNOPSIS πΈ
int mmc_gpiod_set_cd_config (struct mmc_host *host , unsigned long
config );
π ARGUMENTS π
hostβ the mmc host, aka the main character of this whole operation πconfigβ a Generic pinconf config (the kind that comes frompinconf_to_config_packed) π
π¦ DESCRIPTION π¦
so basically, mmc host drivers can use this to fixup a card-detection GPIO's config β like, for example, setting PIN_CONFIG_BIAS_PULL_UP π β but only after they've acquired the GPIO descriptor through mmc_gpiod_request_cd. order matters, babe, it's giving sequencing π
β RETURN β
0 on success, or a negative errno value on error π (bestie if it's negative, something went wrong, no cap)
π SEE ALSO π
- Kernel file
./drivers/mmc/core/slot-gpio.c mmc_gpiod_request_cd(9)mmc_gpiod_request_ro(9)
and that's the whole vibe check π this page lives in ./drivers/mmc/core, dated October 2026 β slay, go fix up those GPIO configs, ily, bye π§ββοΈβ¨π
π¦ 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