meson_spifc_drain_buffer(9)
π« meson_spifc_drain_buffer(9) π«
okay so bestie, welcome to the Kernel API Manual β this one's a lil function page and it's honestly iconic in its simplicity. no cap, it's short, but it slaps. let's get into it π
πΈ NAME πΈ
meson_spifc_drain_buffer β copy data from device buffer to memory
like, literally that's the whole gig. data goes from the device's buffer into memory. draining the tank, bestie. π«
β¨ SYNOPSIS β¨
void meson_spifc_drain_buffer (struct meson_spifc *spifc , u8 *buf , int
len );
it returns void, so don't go looking for a return value, there isn't one. she just does the thing π
π¦ ARGUMENTS π¦
spifcβ the Meson SPI device. this is your main character, the whole reason we're here πbufβ the destination buffer. this is where the data lands, the final boss of the copy π―lenβ number of bytes to copy. yes queen, tell her exactly how much π
π SEE ALSO π
- Kernel file
./drivers/spi/spi-meson-spifc.c struct meson_spifc(9)meson_spifc_wait_ready(9)meson_spifc_fill_buffer(9)meson_spifc_setup_speed(9)meson_spifc_txrx(9)meson_spifc_transfer_one(9)meson_spifc_hw_init(9)
the whole friend group fr fr, go read them too π
π reminder from your girl: this page is short because the function is short. no hidden lore, no secret options, nothing. what you see is what you get, and what you get is a buffer drain. periodt.
okay that's the tea π§ and for the cute sign-off: this lil masterpiece lives under ./drivers/spi, and it's dated October 2026 β so mark your calendars bestie, it's giving future energy βπ
π¦ 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