hinic_api_cmd_init(9)
π
hinic_api_cmd_init (9) β from the Kernel API Manual, bestie
Okay so picture this: you're deep in the kernel, poking at a Huawei NIC, and somebody's gotta set up all the API CMD chains. That somebody is this function. She's the main character of this page, and honestly? She ate. π
β¨ NAME β¨
hinic_api_cmd_init β literally initializes all the API CMD chains. All of them. Every single one. No cap. π
πΈ SYNOPSIS πΈ
int hinic_api_cmd_init (struct hinic_api_cmd_chain **chain , struct hinic_hwif *hwif );
π¦ ARGUMENTS π¦
chainβ the API CMD chains that get initialized. Like, this is the glow-up destination. β¨hwifβ the hardware interface of a pci function device. Your actual physical NIC energy. π
π DESCRIPTION π
Returns 0 on success, or a negative value on failure. That's it, that's the whole vibe check: 0 β Success, negative β Failure. π«Ά
Ngl bestie, that's the entire description in the original. Short and iconic. Don't go looking for more lore, because there isn't any. π
π SEE ALSO π
Kernel file: ./drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c β go read the source, iykyk π
The whole friend group, in order, no one left out:
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)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_free(9)
And that's the page, bestie π§ Source: ./drivers/net/ethernet/huawei/..., dated October 2026 β remembered forever, periodt. βπ
π¦ 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