sdio_align_size(9)
π sdio_align_size(9) β from the Kernel API Manual, bestie
okay so picture this: you're in the kernel, you're doing SDIO stuff, and you've got a transfer size that's just... not it. this little icon <rainbow>sdio_align_size</rainbow> is here to pad your transfer size up to a way more optimal value. that's the whole vibe. π
β¨ SYNOPSIS β¨
unsigned int sdio_align_size (struct sdio_func *func , unsigned int sz
);
like, that's the signature. unsigned int in, unsigned int out, two args, slay.
π«Ά ARGUMENTS π«Ά
funcβ the SDIO function. the main character of this whole operation, honestly.szβ your original transfer size. the before picture. πΈ
π DESCRIPTION π
so what it does is: it pads the original data size with a number of extra bytes. why? because we're avoiding controller bugs and/or performance hits, and no cap, some controllers literally revert to PIO for certain sizes. like... embarrassing for them, but okay, we work around it. π
if possible, it will also adjust the size so that it can be handled in just a single request. one request. iconic behavior. one and done. β¨
and what do you get back? the improved size. yes bestie, the improved size. but heads up β it might be unmodified, so don't go assuming it always changed. it's giving "we tried, and sometimes trying is enough." π
π¦ SEE ALSO π¦
kernel file ./drivers/mmc/core/sdio_io.c β go read it, iykyk π
sdio_claim_host(9)sdio_release_host(9)sdio_enable_func(9)sdio_disable_func(9)sdio_set_block_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_set_host_pm_flags(9)sdio_retune_crc_disable(9)sdio_retune_crc_enable(9)sdio_retune_hold_now(9)sdio_retune_release(9)
lowkey the whole family is linked above, so if you're lost in the SDIO cinematic universe, that's your watchlist. π
and that's the page, bestie!! πΈ this one lives in ./drivers/mmc/core and it's dated October 2026 β so go forth, align those sizes, and remember: extra bytes are not wasted bytes, they're curated bytes. periodt. π
π₯β
π¦ 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