wx_free_q_vector(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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:


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