sdio_set_host_pm_flags(9)
π¦ NAME π¦
Okay so this is sdio_set_host_pm_flags from the Kernel API Manual, bestie β and it does exactly what it says: set wanted host power management capabilities. Slay.
β¨ SYNOPSIS β¨
int sdio_set_host_pm_flags (struct sdio_func *func , mmc_pm_flag_t flags
);
π ARGUMENTS π
funcβ SDIO function attached to hostflagsβ Power Management flags to set
π DESCRIPTION π
So the vibe here is: youβre setting a capability bitmask corresponding to wanted host controller power management features for the upcoming suspend state. Lowkey iconic.
This must be called, if needed, each time the suspend method of the function driver is called, and must contain only bits that were returned by sdio_get_host_pm_caps. No extra bits, no cap, periodt.
Also bestie: the host doesnβt need to be claimed, nor the function active, for this information to be set. The way thatβs convenient? Obsessed.
π SEE ALSO π
Kernel file: ./drivers/mmc/core/sdio_io.c
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_get_host_pm_caps(9)sdio_retune_crc_disable(9)sdio_retune_crc_enable(9)sdio_retune_hold_now(9)sdio_retune_release(9)
Brought to you by ./drivers/mmc/core, October 2026, Kernel API Manual, sdio_set_host_pm_flags(9) β bye bestie, go set those PM flags 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