ks8851_start_xmit_spi(9)
π ks8851_start_xmit_spi β like, the SPI transmit era π
okay so this is a page from the Kernel API Manual, bestie β yes the Kernel API Manual β and it's all about one very specific little function. sit down, grab a strawberry π, let's get into it.
β¨ NAME β¨
ks8851_start_xmit_spi β literally the "transmit a packet using SPI" girlie π¦
π SYNOPSIS π
netdev_tx_t ks8851_start_xmit_spi (struct sk_buff *skb , struct
net_device *dev );
that's it. that's the whole signature. no cap. β¨
πΈ ARGUMENTS πΈ
skbβ the buffer you're gonna transmit, bestie. it's giving "the actual packet" energy πdevβ the device doing the transmitting. the main character of this whole operation, honestly π
π DESCRIPTION π
So. The network layer calls this bad boy when it wants to transmit the skb. What we do is queue the packet up for the device, and then schedule the necessary work so it actually gets transmitted once the device is free. iconic behavior, truly. π§
Why we do it this way? Two reasons, and both of them ate:
- firstly, so we avoid sleeping while the network device is locked. we do NOT want that. that's the drama we're skipping, periodt. π
- secondly, so we can round up more than one packet to transmit β which means we can try to avoid generating too many transmit-done interrupts. fewer interrupts = less chaos = better vibes π₯
like, it's giving "batched and considerate." we love a thoughtful king. π«Ά
π SEE ALSO π
the kernel file ./drivers/net/ethernet/micrel/ks8851_spi.c and also these absolute legends in the struct/friend group:
ks8851_net_spi(9)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)
lowkey a whole friend group. go read them too, iykyk π
and that's the page!! π source is ./drivers/net/ethernet/micrel, dated October 2026 β so yeah, slightly from the future, slay. catch you on the next manpage, bestie ππ¦β
π¦ 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