STRUCT KS8851_NET_SPI(9)
πΈ NAME πΈ
okay so bestie, this is the Kernel API Manual page for struct ks8851_net_spi(9), and it is literally the private data struct for the KS8851 SPI driver. The official vibe is struct ks8851_net_spi - KS8851 SPI driver private data. That's it, that's the name, no cap π
β¨ SYNOPSIS β¨
here's the struct in all its iconic glory, copied exactly so you don't have to guess π«Ά
struct ks8851_net_spi {
struct ks8851_net ks8851;
struct mutex lock;
struct work_struct tx_work;
struct spi_device *spidev;
struct spi_message spi_msg1;
struct spi_message spi_msg2;
struct spi_transfer spi_xfer1;
struct spi_transfer spi_xfer2[2];
};
π Members π
ks8851β the KS8851 driver common private data. It's giving shared-core energy π₯lockβ the lock that makes sure the device is not accessed when it's busy. Respect the lock, bestie.tx_workβ work queue for tx packets. TX girlies stay booked and busy β¨spidevβ the SPI device we're bound to. That's our plus-one π«Άspi_msg1β pre-setup SPI transfer with one message,spi_xfer1. One-message icon.spi_msg2β pre-setup SPI transfer with two messages,spi_xfer2. Two-message main character.spi_xfer1βspi_msg1SPI transfer structure. Yes, literally that.spi_xfer2βspi_msg2SPI transfer structure. Also literally that.
π Description π
so the lock is there to ensure that the chip is protected when certain operations are in progress. When the read or write packet transfer is in progress, most of the chip registers are not accessible until the transfer is finished and the DMA has been de-asserted. That's the tea βοΈ don't expect those registers to answer mid-transfer, fr fr.
π₯ SEE ALSO π₯
- Kernel file
./drivers/net/ethernet/micrel/ks8851_spi.c ks8851_lock_spi(9)ks8851_unlock_spi(9)ks8851_wrreg16_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)
go read these next, bestie, they're all linked and ready π
that's the whole page, bestie π«Ά this came from ./drivers/net/ethernet/micrel, dated October 2026, and it's the struct ks8851_net_spi(9) manual entry. 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