igb_free_q_vectors(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… igb_free_q_vectors(9) β€” from the Kernel API Manual, bestie

okay so first things first, the manual name is literally igb_free_q_vectors(9) and it lives in the Kernel API Manual, and today we're learning how to let go ✨ (thematically: freeing stuff).


✨ NAME ✨

igb_free_q_vectors β€” free the memory that got allocated for interrupt vectors 🧚


πŸŽ€ SYNOPSIS πŸŽ€

void igb_free_q_vectors (struct igb_adapter *adapter );

that's it. that's the whole vibe. void, no return value, we simply give it an adapter and it handles its business πŸ’…


🌸 ARGUMENTS 🌸

  • adapter β€” the board private structure to initialize, bestie 🫢

πŸ’– DESCRIPTION πŸ’–

okay so here's the tea β˜• β€” this function frees the memory that was allocated to the q_vectors. that's the whole main character move.

and in addition (the way that it does the most 😭), if NAPI is enabled, it will also delete any references to the NAPI struct prior to freeing the q_vector.

so the order is literally: clean up the NAPI references first, then free the q_vector. no dangling vibes, no leftover pointers, we do not leave mess behind in this house 🏠✨


πŸ¦‹ SEE ALSO πŸ¦‹

first up, the source of truth, the kernel file itself:

  • Kernel file ./drivers/net/ethernet/intel/igb/igb_main.c

and now the friend group πŸ’œ β€” every single one of these, no cap:

like, that's the whole roster πŸ‘‘ iykyk.


ngl this one's short and sweet β€” but do NOT skip the NAPI part, that's the whole plot twist 😭

and that's the page, bestie πŸŽ€ it came from ./drivers/net/ethernet/intel/igb and it's dated October 2026, and the manual stamps its name igb_free_q_vectors(9) on the whole thing. slay, go free those vectors πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from