wait_for_api_cmd_completion(9)
π wait_for_api_cmd_completion(9) π
okay so bestie, welcome to the Kernel API Manual β this lil page is all about wait_for_api_cmd_completion, and honestly? the name is giving exactly what it is: you wait for a command to complete. no plot twists, no cap. π
β¨ NAME β¨
wait_for_api_cmd_completion β wait for command to complete π¦
like, literally that. you call it, you chill, the command finishes. main character energy but make it a blocking call.
πΈ SYNOPSIS πΈ
int wait_for_api_cmd_completion (struct hinic_api_cmd_chain *chain );
copy it exactly like that, spacing and all, i don't make the rules (i do enforce them tho π ).
π§ ARGUMENTS π§
chainβ the chain for the command π« that's your one and only input, she's carrying the whole function on her back fr fr.
π₯ DESCRIPTION π₯
the whole mood of this function, in the original's own words:
Return 0 - Success, negative - Failure
so yeah. 0 means slay, we ate, everything's fine β¨. anything negative means it did not go well π β check that return value, i'm begging you. lowkey the most important two lines on this whole page and they're also the shortest. iconic honestly.
π SEE ALSO π
the kernel file lives right here, go read the source if you wanna be that girl:
./drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c
and here's the whole friend group β every single one of them, no skipping π:
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)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)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)
okay that's the whole page bestie, go forth and poll responsibly π
mwah π this came from ./drivers/net/ethernet/huawei/..., dated October 2026, and it's page wait_for_api_cmd_completion(9) of the Kernel API Manual β see you in the next one, ily π«Άβ¨
π¦ 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