sdio_get_host_pm_caps(9)
π sdio_get_host_pm_caps(9)
okay so bestie, welcome to the Kernel API Manual β¨ β yes we're reading manpages now, this is our era. Today's main character is sdio_get_host_pm_caps, and it's genuinely so useful, let me tell you everything π«Ά
πΈ NAME
sdio_get_host_pm_caps β literally just "get host power management capabilities", no cap π
β¨ SYNOPSIS
mmc_pm_flag_t sdio_get_host_pm_caps (struct sdio_func *func );
π ARGUMENTS
funcβ the SDIO function attached to the host π that's the one thing you gotta hand over, bestie.
π¦ DESCRIPTION
So this one returns a capability bitmask β think of it as a little sparkly checklist β¨ β and that bitmask corresponds to all the power management features that the host controller supports, the ones the card function might be relying on during a system suspend π΄
And here's the iconic part: the host does not need to be claimed, and the function doesn't need to be active either. You can justβ¦ get this info π€― no prerequisites, no vibe check required, it's giving effortless π
π SEE ALSO
Kernel file ./drivers/mmc/core/sdio_io.c β go look, it's all in there, iykyk π
The whole friend group, fr fr:
sdio_claim_host(9)sdio_release_host(9)sdio_enable_func(9)sdio_disable_func(9)sdio_set_block_size(9)sdio_align_size(9)sdio_readb(9)sdio_writeb(9)sdio_writeb_readb(9)sdio_memcpy_fromio(9)sdio_memcpy_toio(9)sdio_readsb(9)sdio_writesb(9)sdio_readw(9)sdio_writew(9)sdio_readl(9)sdio_writel(9)sdio_f0_readb(9)sdio_f0_writeb(9)sdio_set_host_pm_flags(9)sdio_retune_crc_disable(9)sdio_retune_crc_enable(9)sdio_retune_hold_now(9)sdio_retune_release(9)
and that's the whole page bestie, you ate that π β¨
this little love letter came from ./drivers/mmc/core, dated October 2026, and it's filed under sdio_get_host_pm_caps(9) β go forth and slay your suspend logic πππ
π¦ 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