api_cmd_hw_restart(9)
β¨ api_cmd_hw_restart(9) β¨
okay so bestie, welcome to the Kernel API Manual π this one's a little function page from the Huawei hinic driver family, and honestly? it's short, it's sweet, and it does exactly one thing. let's get into it π
πΈ NAME πΈ
api_cmd_hw_restart β literally just restart the chain in the HW π
that's the whole vibe. the chain, in the hardware, restarted. periodt.
β¨ SYNOPSIS β¨
int api_cmd_hw_restart (struct hinic_api_cmd_chain *chain );
so it takes one pointer to a struct hinic_api_cmd_chain and hands you back an int. that's it, that's the signature π«Ά copy it exactly, no cap.
π¦ ARGUMENTS π¦
chainβ the API CMD specific chain you wanna restart. like, this chain right here π the one that's specific to API CMD. she's the main character of this call π
π DESCRIPTION π
here's the whole deal, and i mean the whole deal: it returns 0 on success, and a negative value on failure. that's the documented behaviour, fr fr β no extra lore, no hidden chapters, nothing else on the menu π
ngl it's giving "tiny function, big responsibility" energy. check that return value, bestie π
π§ SEE ALSO π§
the kernel file lives at ./drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c β go read it if you're feeling brave π
and here's the whole friend group, all the sibling pages, every single one, 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)wait_for_api_cmd_completion(9)api_cmd(9)hinic_api_cmd_write(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)
source:./drivers/net/ethernet/huawei/...Β· date: October 2026 Β· page:api_cmd_hw_restart(9)
okay that's the page!! you ate that π go restart that chain, bestie, and remember β negative means something went wrong, so maybe don't ignore it πβ¨π¦
π¦ 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