fm10k_free_q_vector(9)
π fm10k_free_q_vector β from the Kernel API Manual, bestie β¨
okay so real talk, this is a page from the Kernel API Manual, section 9, and it's all about fm10k_free_q_vector. it's giving cleanup-crew energy and honestly? iconic. let's get into it π«Ά
πΈ NAME πΈ
fm10k_free_q_vector β frees up the memory that was allocated for one specific interrupt vector. that's it, that's the job π
β¨ SYNOPSIS β¨
void fm10k_free_q_vector (struct fm10k_intfc *interface , int v_idx );
so it returns void (nothing comes back, it just does the thing) and it takes two args. slay π
π ARGUMENTS π
interfaceβ the board private structure you're initializing. that's your main character struct, fr fr.v_idxβ the index of the vector that's getting freed. which one? this one. bye bestie π
π¦ DESCRIPTION π¦
okay so here's the tea: this function frees the memory that was allocated to the q_vector. that's the whole vibe. π§
BUT WAIT β there's more, and the more is lowkey important: in addition, if NAPI is enabled, it will delete any references to the NAPI struct prior to freeing the q_vector. so the order matters, no cap β NAPI refs go first, then the q_vector itself gets yeeted. π₯
like, clean up your NAPI references before you free stuff, otherwise it's giving chaos and nobody wants that π
π SEE ALSO π
the kernel file lives right here, bestie:
./drivers/net/ethernet/intel/fm10k/fm10k_main.c
and here's the whole friend group β go say hi to all of them:
fm10k_init_module(9)fm10k_exit_module(9)fm10k_alloc_rx_buffers(9)fm10k_reuse_rx_page(9)fm10k_add_rx_frag(9)fm10k_process_skb_fields(9)fm10k_is_non_eop(9)fm10k_cleanup_headers(9)fm10k_receive_skb(9)fm10k_get_tx_pending(9)fm10k_tx_timeout_reset(9)fm10k_clean_tx_irq(9)fm10k_update_itr(9)fm10k_set_qos_queues(9)fm10k_set_rss_queues(9)fm10k_set_num_queues(9)fm10k_reset_num_queues(9)fm10k_alloc_q_vector(9)fm10k_alloc_q_vectors(9)fm10k_free_q_vectors(9)fm10k_reset_msix_capability(9)fm10k_init_msix_capability(9)fm10k_cache_ring_qos(9)fm10k_cache_ring_rss(9)fm10k_assign_rings(9)fm10k_init_queueing_scheme(9)fm10k_clear_queueing_scheme(9)
okay that's the whole page!! π this lil guy comes from ./drivers/net/ethernet/intel/fm10k/fm10k_main.c and the page itself is dated October 2026 β so mark your calendars bestie, mwah πβ¨πΈ
π¦ 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