free_wq_pages(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… free_wq_pages πŸ’…

okay so this one is from the Kernel API Manual, section 9, and it's a kernel API page β€” meaning it's dev-facing, iykyk. it's a short one but we're giving it main character energy anyway 🫢


🌸 NAME 🌸

free_wq_pages β€” free pages of WQ ✨

like, that's the whole thing bestie. she frees the pages. of the WQ. iconic, no notes πŸ’…


✨ SYNOPSIS ✨

void free_wq_pages (struct hinic_wq *wq , struct hinic_hwif *hwif , int
num_q_pages );

literally copy that exactly, spacing and all β€” do not "fix" the commas, she's perfect as she is 😭


πŸ’– ARGUMENTS πŸ’–

  • wq β€” the WQ you're freeing pages from πŸŽ€ like, this is the one getting her pages taken
  • hwif β€” the HW interface, and it's the thing that releases the dma addresses 🌈 (so yeah, dma addresses get released through here)
  • num_q_pages β€” the number of pages to free, bestie. count them. don't be weird about it πŸ”’

πŸ¦‹ SEE ALSO πŸ¦‹

the whole friend group, gathered for you πŸ‘‘

  • the kernel file ./drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c β€” that's where she lives 🏠

and then all her besties, in order, no cap:

all of them. every single one. we don't do "and friends" here πŸ’€


lowkey reminder: this page gives you the signature and the args, that's it β€” no extra lore, so don't go inventing behaviour that isn't on the page πŸ™ˆ

mwah πŸ’‹ this one's from ./drivers/net/ethernet/huawei/... and it's dated October 2026, and yes the page is literally called free_wq_pages(9) β€” cite her correctly bestie πŸŒŸπŸŽ€

πŸ“¦ where this page comes from