rx_alloc_skb(9)
π 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 π
- Kernel file
./drivers/net/ethernet/huawei/hinic/hinic_rx.cβ this is where the actual source lives, go read it if you wanna know more than the page tells you π hinic_rxq_clean_stats(9)hinic_rxq_get_stats(9)rxq_stats_init(9)rx_unmap_skb(9)rx_free_skb(9)rx_alloc_pkts(9)free_all_rx_skbs(9)rx_recv_jumbo_pkt(9)rxq_recv(9)hinic_init_rxq(9)hinic_clean_rxq(9)
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
- 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