__alloc_dma...sc_resources(9)
π __alloc_dma_tx_desc_resources(9) β the Kernel API Manual page you didn't know you needed π
okay so welcome to the Kernel API Manual, bestie π this is the page for __alloc_dma_tx_desc_resources, and yes the title got cutely abbreviated to __alloc_dma...sc_resources(9) up top because life is short and header lines are shorter. Anyway. Sit down, hydrate, let's talk about allocating TX resources per queue. β¨
πΈ NAME πΈ
__alloc_dma_tx_desc_resources β alloc TX resources (per queue). that's it, that's the whole name section, she's concise π
π¦ SYNOPSIS π¦
int __alloc_dma_tx_desc_resources (struct stmmac_priv *priv , struct
stmmac_dma_conf *dma_conf , u32 queue );
literally the whole signature, copy-paste it exactly, don't come for me about the line break π
β¨ ARGUMENTS β¨
privβ the private structure. your personal little info stash π«Άdma_confβ the structure that takes the dma data. it's the vessel, it receives πqueueβ the TX queue index. which queue we're talking about, iconic of her π
π DESCRIPTION π
so here's the tea β β depending on which descriptor can actually be used (extend or basic), this function allocates the resources for both the TX and RX paths. yes bestie, both, it's giving multitasking main character energy π₯
and on the reception side specifically? it pre-allocated the RX socket buffer so the zero-copy mechanism can do its thing π§ no cap, that's the whole flex.
π tiny note that this is the allocation half of the story β the freeing counterparts are chilling down in SEE ALSO, so go read those too, iykyk.
π SEE ALSO π
the whole friend group, in order, no one left behind π also the kernel file itself lives at ./drivers/net/ethernet/stmicro/stmmac/stmmac_main.c π
stmmac_set_clk_tx_rate(9)stmmac_axi_blen_to_mask(9)stmmac_verify_args(9)stmmac_disable_all_queues(9)stmmac_enable_all_queues(9)stmmac_rx_dirty(9)stmmac_try_to_start_sw_lpi(9)stmmac_stop_sw_lpi(9)stmmac_eee_ctrl_timer(9)stmmac_hwtstamp_set(9)stmmac_hwtstamp_get(9)stmmac_init_tstamp_counter(9)stmmac_init_timestamping(9)stmmac_mac_flow_ctrl(9)stmmac_check_pcs_mode(9)stmmac_init_phy(9)stmmac_clear_rx_descriptors(9)stmmac_clear_tx_descriptors(9)stmmac_clear_descriptors(9)stmmac_init_rx_buffers(9)stmmac_free_rx_buffer(9)stmmac_free_tx_buffer(9)dma_free_rx_skbufs(9)dma_free_rx_xskbufs(9)__init_dma_rx_desc_rings(9)__init_dma_tx_desc_rings(9)init_dma_desc_rings(9)dma_free_tx_skbufs(9)stmmac_free_tx_skbufs(9)__free_dma_rx_desc_resources(9)__free_dma_tx_desc_resources(9)__alloc_dma_rx_desc_resources(9)alloc_dma_desc_resources(9)free_dma_desc_resources(9)stmmac_mac_enable_rx_queues(9)stmmac_start_rx_dma(9)stmmac_start_tx_dma(9)stmmac_stop_rx_dma(9)stmmac_stop_tx_dma(9)stmmac_start_all_dma(9)stmmac_stop_all_dma(9)stmmac_dma_operation_mode(9)stmmac_tx_clean(9)stmmac_tx_err(9)stmmac_set_dma_operation_mode(9)stmmac_dma_interrupt(9)stmmac_mmc_setup(9)stmmac_get_hw_features(9)stmmac_check_ether_addr(9)stmmac_init_dma_engine(9)stmmac_tx_timer(9)stmmac_init_coalesce(9)stmmac_set_tx_queue_weight(9)stmmac_configure_cbs(9)stmmac_rx_queue_dma_chan_map(9)stmmac_mac_config_rx_queues_prio(9)stmmac_mac_config_tx_queues_prio(9)stmmac_mac_config_rx_queues_routing(9)stmmac_mtl_configuration(9)stmmac_hw_setup(9)stmmac_setup_dma_desc(9)__stmmac_open(9)stmmac_release(9)stmmac_tso_allocator(9)stmmac_tso_xmit(9)stmmac_has_ip_ethertype(9)stmmac_xmit(9)stmmac_rx_refill(9)stmmac_rx(9)stmmac_tx_timeout(9)stmmac_set_rx_mode(9)stmmac_change_mtu(9)stmmac_interrupt(9)stmmac_ioctl(9)stmmac_hw_init(9)stmmac_dvr_probe(9)stmmac_dvr_remove(9)stmmac_suspend(9)stmmac_reset_queues_param(9)stmmac_resume(9)
and that's the page, bestie π mwah π
sign-off szn π«Ά this lil number comes to you from the source at./drivers/net/ethernet/stmicro...(yes the footer truncates it too, she's mysterious like that) and it's dated October 2026, living under the header__alloc_dma...sc_resources(9). slay, go allocate responsibly π β¨
π¦ 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