wait_for_status_poll(9)
β¨ wait_for_status_poll(9) β¨
okay bestie, we're in the Kernel API Manual today and this one is a lil function named wait_for_status_poll β she's out here waiting for a write to the api cmd command to complete π
like literally just sitting there until the thing finishes, no cap.
πΈ SYNOPSIS πΈ
int wait_for_status_poll (struct hinic_api_cmd_chain *chain );
one function, one argument, returns an int β she's lowkey simple like that π
π¦ ARGUMENTS π¦
chainβ the chain of the command π that's it, that's the whole parameter. it's thestruct hinic_api_cmd_chain *you're handing over.
β DESCRIPTION β
here's the whole vibe check, and honestly it's short and sweet:
0β Success π- negative β Failure π
that's the entire description fr fr. return 0 and you ate; return something negative andβ¦ not me getting an error π
π§ SEE ALSO π§
the whole friend group, all of them (9) section besties π«Ά:
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_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)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)
and if you wanna read the actual source (iconic behaviour honestly), she lives in the kernel file ./drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c β go say hi π¦
quick reminder bestie: 0 = slay, negative = π. there is no in-between, the manpage said what it said.
okay that's the page!! mwah π this lil entry came from ./drivers/net/ethernet/huawei/... and it's dated October 2026 β periodt, go poll that status bestie β¨π
π¦ 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