api_cmd_destroy_chain(9)
π¦ api_cmd_destroy_chain(9) β Kernel API Manual β¨
okay so bestie, we're in the Kernel API Manual today and this one is a lil function that's all about cleaning up β it's giving responsible queen energy, not messy main character energy π
β¨ NAME β¨
api_cmd_destroy_chain β destroy API CMD specific chain
likeβ¦ it destroys the chain. the API CMD specific one. that's the whole gig π no cap, she's a one-job girlie and she does it well π«Ά
πΈ SYNOPSIS πΈ
void api_cmd_destroy_chain (struct hinic_api_cmd_chain *chain );
literally that's it, just the one declaration, copy it exactly bestie, don't @ me π
π ARGUMENTS π
chainβ the API CMD specific chain to destroy π this is the poor thing getting yeeted. hand her over and she's gone, periodt.
π« SEE ALSO π«
okay this section is a whole friend group, like the entire squad showed up to the group chat β and the kernel file they all live in is:
./drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c
and then, in the order they appear (don't come for me, I'm being faithful π):
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)hinic_api_cmd_init(9)hinic_api_cmd_free(9)
iykyk π and yeah β notice api_cmd_create_chain(9) is right there at the end, the literal opposite of our girl. nemesis behavior honestly π¦
lowkey a reminder: this page gives you the signature, the argument, and the squad β it does not invent extra behavior for you, so don't go making stuff up about what happens after the destroy. stay in your lane, icon π
okay that's the whole page!! πΈ mwah π cute lil sign-off time: this one comes from the source path ./drivers/net/ethernet/huawei/... and it's dated October 2026, and the footer name is, of course, api_cmd_destroy_chain(9) π byeee bestie, go destroy some chains (responsibly) βπ«Ά
π¦ 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