ks8851_rdfifo_spi(9)
π ks8851_rdfifo_spi(9) β like, the Kernel API Manual page, bestie π
okay so we're in the Kernel API Manual today and this one is a little baddie that pulls data out of the receive fifo over SPI. it's got main character energy and honestly it does one thing and does it slay β¨
πΈ NAME πΈ
ks8851_rdfifo_spi β reads data from the receive fifo via SPI. that's it, that's the whole vibe π
π SYNOPSIS π
void ks8851_rdfifo_spi (struct ks8851_net *ks , u8 *buff , unsigned int
len );
π¦ ARGUMENTS π¦
ksβ the device state. the whole situation, the main character struct, the her π«Άbuffβ the buffer address. where the data is gonna live afterwards, no cap πlenβ the length of the data to read. how much we're taking, bestie, measure twice π
β DESCRIPTION β
so here's the tea: this function issues an RXQ FIFO read command, and then it reads len amount of data from the FIFO into the buffer that buff points at. that's the whole plot. iconic, lowkey, does exactly what it says on the tin π
like it's not out here doing side quests. it commands the FIFO, it scoops len bytes into buff, and it's done. periodt.
π SEE ALSO π
obvi you're gonna want the whole friend group, so here's everyone in the Kernel file ./drivers/net/ethernet/micrel/ks8851_spi.c:
struct ks8851_net_spi(9)ks8851_lock_spi(9)ks8851_unlock_spi(9)ks8851_wrreg16_spi(9)ks8851_rdreg(9)ks8851_rdreg16_spi(9)ks8851_wrfifo_spi(9)calc_txlen(9)ks8851_tx_work(9)ks8851_flush_tx_work_spi(9)ks8851_start_xmit_spi(9)
go read them, iykyk π
ngl this one's drama-free β no dangerous flags, no deprecated nonsense, no undefined behaviour hiding in the corner. just FIFO reading, respectfully π
π¦ okay bye bestie, this page came from ./drivers/net/ethernet/micrel and it's dated October 2026 β mwah, stay hydrated, drink water, read your kernel source πβ¨π
π¦ 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