rx_alloc_skb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– rx_alloc_skb(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” this one's a lil page from the kernel docs, section 9, and it's literally about one function: rx_alloc_skb. buckle up, it's a short one but she's iconic πŸŽ€


✨ NAME ✨

rx_alloc_skb β€” allocate skb and map it to dma address πŸ¦‹

like, that's the whole vibe. it grabs you an skb and then maps it to a dma address. slay.


🌸 SYNOPSIS 🌸

struct sk_buff * rx_alloc_skb (struct hinic_rxq *rxq , dma_addr_t
*dma_addr );

that's the signature, copy it exactly, no cap β€” struct sk_buff * return type, two args, and yes there's a space before the comma in the original so we're keeping it, we don't fix things here πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • rxq β€” the rx queue. that's her. the receive queue in question 🧚
  • dma_addr β€” the returned dma address for the skb. so this is an out-param situation, the function fills it in and hands it back to you 🫢

πŸ’œ DESCRIPTION πŸ’œ

Return skb.

that's it. that's the description. short queen energy πŸ‘‘ ngl the manpage is not exactly verbose here β€” it returns the skb, that's the whole documented behaviour, and we are not inventing more lore than the page gives us πŸ™ˆ


🌈 SEE ALSO 🌈

that's the whole friend group fr fr β€” the cleanup crew, the stats girlies, the recv squad, and the init/clean duo. iykyk πŸ’€


and that's the page!! signing off from ./drivers/net/ethernet/huawei/..., dated October 2026, in true rx_alloc_skb(9) fashion πŸ“βœ¨πŸ’–

πŸ“¦ where this page comes from