free_cmd_buf(9)
π free_cmd_buf(9) β like, the whole manual page, bestie π
okay so real talk: this is a page from the Kernel API Manual, and it's about free_cmd_buf β the function that frees the dma buffer of an API CMD command. short page, but we're gonna treat it with the respect it deserves π«Ά
β¨ NAME β¨
free_cmd_buf β frees the dma buffer of an API CMD command. that's it. that's the whole vibe. she does one thing and she does it iconically π
π¦ SYNOPSIS π¦
void free_cmd_buf (struct hinic_api_cmd_chain *chain , int cell_idx );
literally just look at her. void return, two args, no notes. no cap, this is the entire signature, character for character, please don't come for me π
π ARGUMENTS π
chainβ the API CMD specific chain of the cmd. yes bestie, the chain, the API CMD specific one, of the cmd. she's the main character here πcell_idxβ the cell index of the cmd. it's giving "which cell tho" energy, and the answer is: this index right here π
β οΈ heads up: both of these are exactly what the page says, so don't go inventing extra params. the function has two arguments and two arguments only, periodt.
π SEE ALSO π
this is the part where the manpage goes full group-chat-tagging-everyone energy, and honestly? obsessed. every single one of these is linked:
- The kernel file itself:
./drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.cβ that's where the source lives, iykyk π chain_busy(9)get_cell_data_size(9)prepare_cell_ctrl(9)prepare_api_cmd(9)prepare_cell(9)api_cmd_status_update(9)wait_for_status_poll(9)wait_for_api_cmd_completion(9)api_cmd(9)hinic_api_cmd_write(9)api_cmd_hw_restart(9)api_cmd_ctrl_init(9)api_cmd_set_status_addr(9)api_cmd_set_num_cells(9)api_cmd_head_init(9)api_cmd_chain_hw_clean(9)api_cmd_chain_hw_init(9)alloc_cmd_buf(9)api_cmd_create_cell(9)api_cmd_destroy_cell(9)api_cmd_destroy_cells(9)api_cmd_create_cells(9)api_chain_init(9)api_chain_free(9)api_cmd_create_chain(9)api_cmd_destroy_chain(9)hinic_api_cmd_init(9)hinic_api_cmd_free(9)
like, twenty-eight friends plus the source file. a whole friend group. the alloc_cmd_buf(9) / free_cmd_buf(9) pairing is lowkey the bestie duo of this entire page, and you know it πβ¨
okay that's the page!! short and sweet, just how we like her π§
πΈ before you go: this page is from the Kernel API Manual, dated October 2026, and the footer source was ./drivers/net/ethernet/huawei/... β so yeah, that's the version tea. mwah, go forth and free those buffers responsibly πππ«Ά
π¦ 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