mmc_gpiod_set_cd_config(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 from pinconf_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 🌈


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