sdio_readb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sdio_readb(9) πŸ’…

okay so this is sdio_readb(9) from the Kernel API Manual, and it's giving β€œread one single byte from a SDIO function” energy. no cap, that's the whole vibe. πŸ¦‹


🌸 NAME 🌸

sdio_readb β€” read a single byte from a SDIO function


πŸŽ€ SYNOPSIS πŸŽ€

so the signature is literally right here, bestie:

u8 sdio_readb (struct sdio_func *func , unsigned int addr , int *err_ret
);

✨ ARGUMENTS ✨

  • func β€” the SDIO function to access. that's the main character you're working with πŸ’–
  • addr β€” the address to read. yes, the actual address, don't skip it 🎯
  • err_ret β€” optional status value from the transfer. it's optional, but it's there if you need the status tea β˜•

πŸ’– DESCRIPTION πŸ’–

Reads a single byte from the address space of a given SDIO function. simple, iconic, one byte at a time. πŸ’…

If there's a problem reading the address, 0xff is returned, and err_ret will contain the error code. so yeah, if things go sideways, 0xff is the little β€œsomething went wrong” signal, and err_ret has the actual error code. periodt. πŸ”₯


πŸ”₯ SEE ALSO πŸ”₯

Kernel file: ./drivers/mmc/core/sdio_io.c β€” go check it out, iykyk πŸ‘‘

and these besties are all in the SEE ALSO circle too:


that's the whole page, bestie 🫢 sending you off with the source/version ./drivers/mmc/core and the date October 2026 for sdio_readb(9) β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from