wx_free_q_vector(9)
β¨ wx_free_q_vector(9) β¨ β Kernel API Manual
okay so bestie, welcome to the Kernel API Manual π this one's a little cleanup baddie β it's all about letting go and freeing stuff, and honestly? iconic behaviour.
πΈ NAME πΈ
wx_free_q_vector β free memory allocated for specific interrupt vector π§
π SYNOPSIS π
void wx_free_q_vector (struct wx *wx , int v_idx );
that's the whole signature, no cap. void return, so nothing comes back β it just does the thing and dips π¨
π¦ ARGUMENTS π¦
wxβ board private structure to initialize. yep, that's what the page says, we're keeping it πv_idxβ index of vector to be freed. so like, which vector are we saying bye to π«Ά
π DESCRIPTION π
so what does it actually do? this function frees the memory allocated to the q_vector β that's the main character move, periodt π₯
and there's a bonus round: if NAPI is enabled, it will also delete any references to the NAPI struct prior to freeing the q_vector β¨ so no dangling lil pointers left behind, we love a clean exit π
π SEE ALSO π
the kernel file livin' at ./drivers/net/ethernet/wangxun/libwx/wx_lib.c β go say hi to it π
and like, the whole friend group:
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_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_setup_all_tx_resources(9)wx_get_stats64(9)
quick vibe check: this one's a free-er, so it's paired up with its alloc besties up there (wx_alloc_q_vector,wx_alloc_q_vectors) β iykyk π
β¨ that's the whole page, bestie β¨ source/version: ./drivers/net/ethernet/wangxun... and it's dated October 2026 ποΈπ mwah, go free those vectors 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