write_tx_pkt_wr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… write_tx_pkt_wr(9) β€” ok bestie, we're writing a TX_PKT work request

So this is a page from the Kernel API Manual, and it's about write_tx_pkt_wr β€” the function that literally generates a TX_PKT work request. Yes, that's the whole vibe. Let's get into it πŸŽ€


✨ NAME ✨

write_tx_pkt_wr β€” write a TX_PKT work request. That's it, that's the name, no notes πŸ’…


🌸 SYNOPSIS 🌸

void write_tx_pkt_wr (struct adapter *adap , struct sk_buff *skb , const
     struct port_info *pi , unsigned int pidx , unsigned int gen , struct
     sge_txq *q , unsigned int ndesc , unsigned int compl , const dma_addr_t
     *addr );

Like, look at all those arguments. She's got range 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • adap β€” the adapter. the main character of this whole operation, honestly.
  • skb β€” the packet to send. the actual message, the payload, the reason we're all here πŸ’Œ
  • pi β€” the egress interface. it's giving "which door does this packet leave through".
  • pidx β€” index of the first Tx descriptor to write. like, where do we even start writing. that's this.
  • gen β€” the generation value to use. lowkey sounds mystical but it's just a value and we love her.
  • q β€” the Tx queue. the line the packet is standing in.
  • ndesc β€” number of descriptors the packet will occupy. how much space she's taking up, no cap.
  • compl β€” the value of the COMPL bit to use. yes, specifically the COMPL bit. iconic flag behavior.
  • addr β€” address. short, sweet, exactly as documented πŸ™ˆ

πŸŽ€ DESCRIPTION πŸŽ€

Generate a TX_PKT work request to send the supplied packet.

That's the whole job. It's not deep, bestie, but it is essential β€” you hand over the packet, this function does the generating. periodt. ✨


πŸ”₯ SEE ALSO πŸ”₯

Ok so this function has, like, so many friends. All of these live in the kernel file ./drivers/net/ethernet/chelsio/cxgb3/sge.c, and here they all are β€” every single one, because we do not skip the list in this house πŸ’–

fr fr that's the whole crew. go read them, they're all right there in ./drivers/net/ethernet/chelsio/cxgb3/sge.c 🧚

And that's the page, bestie 🌈 This lil' rewrite came to you from ./drivers/net/ethernet/chelsio..., dated October 2026 β€” mwah, take care of her, she's got write_tx_pkt_wr(9) energy and we're obsessed πŸ’œπŸ‘‘

πŸ“¦ where this page comes from