api_cmd_set_num_cells(9)
π api_cmd_set_num_cells(9) β from the Kernel API Manual, bestie π
okay so real talk, this page lives in the Kernel API Manual and it's all about one tiny little function. no cap, it's short, but it matters. let's get into it β¨
πΈ NAME πΈ
api_cmd_set_num_cells β sets the number cells of a chain in the HW. that's it. that's the whole vibe. it's giving "small function, big responsibility" π
β¨ SYNOPSIS β¨
void api_cmd_set_num_cells (struct hinic_api_cmd_chain *chain );
like, that's literally the signature. returns void, so don't go looking for a return value, she doesn't have one π«Ά
π¦ ARGUMENTS π¦
chainβ the API CMD specific chain to set in HW the number of cells for. so you hand her the chain, and she goes and tells the hardware how many cells that chain has. main character energy honestly π
heads up:chainis astruct hinic_api_cmd_chain *β a pointer, bestie, not the struct itself. don't embarrass us π
π SEE ALSO π
okay this is the part where the manpage just goes feral and lists everything. and i mean everything. respect tho, iykyk π
- the kernel file itself:
./drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c 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_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)
likeβ¦ that's the whole friend group right there π« go read them all, i'll wait π
and that's the page!! no notes, she ate π
π₯ this lil writeup came from ./drivers/net/ethernet/huawei/... and it's dated October 2026, so yeah β see you in the kernel docs again soon, 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