hinic_wqs_cmdq_alloc(9)
πΈ hinic_wqs_cmdq_alloc(9) β the Kernel API Manual glow-up πΈ
okay so bestie, you're in the Kernel API Manual section and this one is literally called hinic_wqs_cmdq_alloc π
β it's the "Allocate wqs for cmdqs" girlie, and yes she's coming in hot from the Huawei hinic driver corner of the kernel. buckle up, it's giving driver-internals main character energy π¦
β¨ NAME β¨
hinic_wqs_cmdq_alloc β Allocate wqs for cmdqs. that's it, that's the whole vibe π
β¨ SYNOPSIS β¨
int hinic_wqs_cmdq_alloc (struct hinic_cmdq_pages *cmdq_pages , struct
hinic_wq *wq , struct hinic_hwif *hwif , int cmdq_blocks , u16
wqebb_size , u32 wq_page_size , u16 q_depth , u16 max_wqe_size );
like, eight arguments, no cap π she's high maintenance but she's iconic.
β¨ ARGUMENTS β¨
cmdq_pagesβ this one's a container bestie: it will hold the pages of the cmdq. it's the output holder, not the input, okurrr π«Άwqβ the returned wqs. yes returned, as in you get them back from this function, slay β¨hwifβ HW interface. short, sweet, hardware-flavoured π₯cmdq_blocksβ number of cmdq blocks/wq to allocate. count 'em πwqebb_sizeβ Work Queue Block Byte Size (wqebb, don't ask me to say it out loud π)wq_page_sizeβ the page size in the Work Queue πq_depthβ number of wqebbs in WQ. so like, how deep the queue goes, iykyk πmax_wqe_sizeβ maximum WQE size that will be used in the WQ. big WQE energy only π
β¨ DESCRIPTION β¨
so the whole entire description is literally this, and we respect the efficiency:
Return 0 - Success, negative - Failure.
that's the vibe check: 0 means we ate, negative means we did not eat ππ
β¨ SEE ALSO β¨
Kernel file ./drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c β go read the source bestie, she's right there π§
and the whole friend group, in order, no skipping:
queue_alloc_page(9)wqs_allocate_page(9)wqs_free_page(9)cmdq_allocate_page(9)cmdq_free_page(9)hinic_wqs_alloc(9)hinic_wqs_free(9)alloc_wqes_shadow(9)free_wqes_shadow(9)free_wq_pages(9)alloc_wq_pages(9)hinic_wq_allocate(9)hinic_wq_free(9)hinic_wqs_cmdq_free(9)hinic_get_wqe(9)hinic_return_wqe(9)hinic_put_wqe(9)hinic_read_wqe(9)hinic_read_wqe_direct(9)wqe_shadow(9)hinic_write_wqe(9)
like, that's the whole group chat π«Άπ
lowkey reminder:hinic_wqs_cmdq_alloc(9)also has her counterparthinic_wqs_cmdq_free(9), so don't be out here leaking pages, periodt π
and that's the page, bestie π this cutie came out of ./drivers/net/ethernet/huawei/... and the date on her birth certificate says October 2026 β so yeah, future icon behaviour βπ signing off with the manual name one last time: hinic_wqs_cmdq_alloc(9) π
π¦ 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