alloc_cmd_buf(9)
π alloc_cmd_buf(9) π
okay so welcome to the alloc_cmd_buf(9) page from the Kernel API Manual, bestie π«Ά this one is short and sweet β itβs all about allocating a dma buffer for an API CMD command. no cap, thatβs the whole mission.
β¨ NAME β¨
alloc_cmd_buf β allocate a dma buffer for API CMD command
π SYNOPSIS π
int alloc_cmd_buf (struct hinic_api_cmd_chain *chain , struct
hinic_api_cmd_cell *cell , int cell_idx );
π ARGUMENTS π
chainβ the API CMD specific chain for the cmdcellβ the cell in the HW for the cmdcell_idxβ the index of the cell
π¦ DESCRIPTION π¦
Return 0 - Success, negative - Failure.
thatβs it, thatβs the return vibe check β 0 means Success, and negative means Failure. no extra lore, periodt π
π SEE ALSO π
the kernel file is ./drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c β and here are all the linked manual pages, in their original order:
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)free_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)
okay bye bestie π
this pageβs source/version is ./drivers/net/ethernet/huawei/... and itβs dated October 2026 β alloc_cmd_buf(9) out πβ¨
π¦ 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