set_rx_sw_desc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– set_rx_sw_desc(9) β€” a Kernel API Manual moment ✨

okay so bestie, welcome to the Kernel API Manual, page set_rx_sw_desc(9). yes she's a real one. pull up a chair, grab a strawberry πŸ“, and let's get into it.


🌸 NAME 🌸

set_rx_sw_desc β€” initializes a software RX buffer descriptor, and honestly? that's her whole job. iconic behavior, no notes. πŸ’…


✨ SYNOPSIS ✨

void set_rx_sw_desc (struct rx_sw_desc *sdesc , struct page *page ,
       dma_addr_t dma_addr );

that's it. that's the whole call. it returns void, so like… she gives you nothing back and expects you to be grateful. and you will be. 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • sdesc β€” pointer to the softwore RX buffer descriptor. (yes, "softwore," that's how it's spelled in the original and we do not gatekeep typos in this house πŸ’–) this is the lil struct you're filling in, bestie, so treat it nice.
  • page β€” pointer to the page data structure backing the RX buffer. this is the actual memory page doing the heavy lifting, main character energy fr fr.
  • dma_addr β€” the PCI DMA address, possibly with low-bit flags. πŸ‘€ so like, it's not just an address, there might be flags tucked into the low bits. don't get caught lacking when you read it back.

πŸ¦‹ SEE ALSO πŸ¦‹

first up, the source file herself, in all her glory:

Kernel file ./drivers/net/ethernet/chelsio/cxgb4vf/sge.c

and then the whole entire friend group β€” like literally the full group chat, everybody showed up:

like, that's the whole roster. go read them if you want the full lore, iykyk πŸ“šπŸ”₯


real talk though: this page is short and sweet, so no scary warnings, no deprecated drama, no undefined behavior jumpscares. just a tidy lil initializer. 🧚

and that's the tea, bestie 🍡 this page came from ./drivers/net/ethernet/chelsio... and it's dated October 2026, under the header set_rx_sw_desc(9) β€” so if you're citing her, cite her correctly. periodt. πŸ’œπŸ‘‘

πŸ“¦ where this page comes from