wx_setup_all_tx_resources(9)
β¨ wx_setup_all_tx_resources β¨
okay so bestie, welcome to the Linux Kernel API Manual page for wx_setup_all_tx_resources β section 9, kernel API vibes only, no cap π
πΈ NAME πΈ
wx_setup_all_tx_resources β the girl who allocates all the queues' Tx resources π
π¦ SYNOPSIS π¦
int wx_setup_all_tx_resources (struct wx *wx );
π ARGUMENTS π
wxβ pointer to the private structure π (that's the whole vibe, it's just a pointer to the private struct)
π₯ DESCRIPTION π₯
okay so listen, this is the important bit and I need you to hear me π
If this function returns with an error, then it's possible that one or more of the rings is populated (while the rest are not). literally a partial-slay situation. And it is the caller's duty to clean those orphaned rings β that's on you, bestie, not on this function. you adopted them, you clean them π«Ά
It returns 0 on success, and a negative value on failure. periodt.
β οΈ lowkey the main character energy here is "returns error β some rings are still full β you gotta clean up." do not skip that part fr fr
π SEE ALSO π
Kernel file ./drivers/net/ethernet/wangxun/libwx/wx_lib.c β that's the source of truth, iykyk π
and here's the whole friend group, like every single one of them, no one left out π₯Ή:
wx_alloc_rx_buffers(9)wx_is_non_eop(9)wx_cleanup_headers(9)wx_rx_checksum(9)wx_process_skb_fields(9)wx_clean_rx_irq(9)wx_clean_tx_irq(9)wx_poll(9)wx_set_rss_queues(9)wx_acquire_msix_vectors(9)wx_set_interrupt_capability(9)wx_cache_ring_rss(9)wx_alloc_q_vector(9)wx_free_q_vector(9)wx_alloc_q_vectors(9)wx_free_q_vectors(9)wx_clear_interrupt_scheme(9)wx_setup_isb_resources(9)wx_free_isb_resources(9)wx_set_ivar(9)wx_write_eitr(9)wx_configure_vectors(9)wx_clean_rx_ring(9)wx_clean_all_rx_rings(9)wx_free_rx_resources(9)wx_free_all_rx_resources(9)wx_clean_tx_ring(9)wx_clean_all_tx_rings(9)wx_free_tx_resources(9)wx_free_all_tx_resources(9)wx_setup_rx_resources(9)wx_setup_all_rx_resources(9)wx_setup_tx_resources(9)wx_get_stats64(9)
π§ tiny sign-off before you go: this page lives under./drivers/net/ethernet/wangxun...and it's dated October 2026, and yes it's still calledwx_setup_all_tx_resources(9)β slay, go allocate something πβπ
π¦ 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