sdio_writesb(9)
π sdio_writesb β bestie's guide to yeeting bytes into a FIFO
okay so this is a page from the Kernel API Manual (section 9, the kernel-space girlies π), and it's all about sdio_writesb, which is lowkey iconic for one specific job: writing into the FIFO of an SDIO function. no cap, that's the whole vibe.
β¨ NAME β¨
sdio_writesb β write to a FIFO of a SDIO function π
πΈ SYNOPSIS πΈ
int sdio_writesb (struct sdio_func *func , unsigned int addr , void *src
, int count );
π¦ ARGUMENTS π¦
funcβ the SDIO function you're accessing π« like, whose FIFO are we talking toaddrβ address of the (single byte) FIFO, yes literally one byte, that's the whole address, don't come for mesrcβ the buffer holding the data you're about to write π this is where your bytes live before they get sentcountβ number of bytes to write, so be honest about how many you're sending π
π DESCRIPTION π
So the way this works: sdio_writesb writes to the specified FIFO of a given SDIO function. That's it, that's the whole personality. β¨
The return value tells you whether the transfer succeeded or not β so like, check it, bestie, don't just ignore it and assume everything's fine π
π SEE ALSO π
Kernel file ./drivers/mmc/core/sdio_io.c (the source of truth, go read it, iykyk π§), plus the whole friend group:
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_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)
π fr fr that's the whole page. go write to your FIFO, main character.
big kiss, this came from ./drivers/mmc/core and it's dated October 2026 β slay, bye π«Άπ
π¦ 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