ks8851_wrreg16_spi(9)
π ks8851_wrreg16_spi β the Kernel API Manual, but make it cute
okay so bestie, welcome to ks8851_wrreg16_spi, straight out of the Kernel API Manual β¨ it's giving "tiny function, big responsibilities," and honestly? We stan a 16-bit write. π
β¨ NAME β¨
ks8851_wrreg16_spi β write a 16-bit register value to the chip via SPI π¦
like, that's literally it. that's the whole vibe. one job, done slayfully. π
πΈ SYNOPSIS πΈ
void ks8851_wrreg16_spi (struct ks8851_net *ks , unsigned int reg ,
unsigned int val );
no return value, no drama, just vibes and side effects π«Ά
π ARGUMENTS π
ksβ the chip state π this is your main character struct, the wholestruct ks8851_net *momentregβ the register address π the exact spot on the chip you're writing into, no capvalβ the value to write π the 16-bit payload itself, the actual content of the message
π₯ DESCRIPTION π₯
Issue a write to put the value val into the register specified in reg.
periodt. π that's the entire function. you hand it the chip state, you hand it an address, you hand it a value, and it goes and writes it over SPI. lowkey iconic that something so simple gets its own manpage entry, but tbh that's the kernel for you β every little helper is a star in its own right. β
not me explaining a two-line function like it's deep, but fr fr: ks tells it which chip, reg tells it where, and val tells it what. three ingredients, one legendary write. π§
π SEE ALSO π
- Kernel file
./drivers/net/ethernet/micrel/ks8851_spi.cπ the source, the lore, the origin story struct ks8851_net_spi(9)ks8851_lock_spi(9)ks8851_unlock_spi(9)ks8851_rdreg(9)ks8851_rdreg16_spi(9)ks8851_rdfifo_spi(9)ks8851_wrfifo_spi(9)calc_txlen(9)ks8851_tx_work(9)ks8851_flush_tx_work_spi(9)ks8851_start_xmit_spi(9)
the whole friend group honestly π go read them, they're all part of the same ks8851 SPI clique π
ngl this function does exactly one thing and does it well β writevalintoregon the chip referenced byks. no hidden tricks in here, bestie, the manpage is short and sweet on purpose π«Ά
and that's a wrap, babe π brought to you by ./drivers/net/ethernet/micrel, dated October 2026, and filed under ks8851_wrreg16_spi(9) β see you in the next manpage, mwah πβ¨
π¦ 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