sdio_set_host_pm_flags(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ 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 host
  • flags β€” 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


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