sxgbe_free_rx_buffers(9)
π sxgbe_free_rx_buffers(9) π
okay so bestie, welcome to the Kernel API Manual β yes we're in kernel land today, hold my iced coffee π§, this one's a cleanup queen and she's here to free things. The way that name literally says it: sxgbe_free_rx_buffers β she frees what sxgbe_init_rx_buffers() allocated. Iconic matched set, fr fr.
β¨ NAME β¨
sxgbe_free_rx_buffers β free what sxgbe_init_rx_buffers() allocated π«Ά
Like, she's the undo button. The cleanup crew. The "you made this mess, now let's tidy" bestie. No cap.
π¦ SYNOPSIS π¦
void sxgbe_free_rx_buffers (struct net_device *dev , struct
sxgbe_rx_norm_desc *p , int i , unsigned int dma_buf_sz , struct
sxgbe_rx_queue *rx_ring );
five arguments, zero return value, all vibes π
π ARGUMENTS π
devβ net device structure π₯οΈ the whole network-device situation, she's the main character herepβ dec pointer (yes, "dec pointer", that's what the page says, we don't ask questions, we just pass it π)iβ index π’ which one we're looking at, bestiedma_buf_szβ size π the size, as sizes dorx_ringβ ring to be freed π that's the actual ring getting released back into the wild
π DESCRIPTION π
so, what does she do? The manual is extremely chill about it and says: this function initializes the DMA RX descriptor.
lowkey that's exactly what the page says β a function named "free" whose description says "initializes". Not me side-eyeing it π but I'm not gonna change the facts, that's the text, and the text is sacred.
What we do know for sure from the NAME section: she frees what sxgbe_init_rx_buffers() allocated. That's the whole assignment. Clean up after your init, bestie, always. β¨
π₯ SEE ALSO π₯
the whole friend group π β kernel file ./drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c plus every single one of these:
sxgbe_verify_args(9)sxgbe_eee_ctrl_timer(9)sxgbe_eee_init(9)sxgbe_clk_csr_set(9)sxgbe_adjust_link(9)sxgbe_init_phy(9)sxgbe_clear_descriptors(9)init_tx_ring(9)free_rx_ring(9)init_rx_ring(9)free_tx_ring(9)init_dma_desc_rings(9)sxgbe_mtl_operation_mode(9)sxgbe_tx_queue_clean(9)sxgbe_tx_all_clean(9)sxgbe_restart_tx_queue(9)sxgbe_reset_all_tx_queues(9)sxgbe_get_hw_features(9)sxgbe_check_ether_addr(9)sxgbe_init_dma_engine(9)sxgbe_init_mtl_engine(9)sxgbe_disable_mtl_engine(9)sxgbe_tx_timer(9)sxgbe_tx_init_coalesce(9)sxgbe_open(9)sxgbe_release(9)sxgbe_xmit(9)sxgbe_rx_refill(9)sxgbe_rx(9)sxgbe_poll(9)sxgbe_tx_timeout(9)sxgbe_common_interrupt(9)sxgbe_tx_interrupt(9)sxgbe_rx_interrupt(9)sxgbe_set_rx_mode(9)sxgbe_poll_controller(9)sxgbe_hw_init(9)sxgbe_drv_probe(9)sxgbe_drv_remove(9)
no skips, no "and friends", we list everyone queen π
alright bestie, that's the page π β brought to you by the source ./drivers/net/ethernet/samsung..., dated October 2026, and she's out here doing sxgbe_free_rx_buffers(9) things. go free those buffers, slay, and remember: whoever allocates, deallocates π
β¨π
π¦ 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