api_cmd_create_cell(9)
π api_cmd_create_cell β a whole manual page, bestie
okay so this is api_cmd_create_cell(9) straight out of the Kernel API Manual, and it's literally about making an API CMD cell for one specific chain. that's the whole vibe. let's get into it π
β¨ NAME β¨
api_cmd_create_cell β create API CMD cell for specific chain π¦
like, you hand it a chain, you tell it which cell index you want, you point at the previous cell, and it hands you back the virtual address of the brand-new cell. no cap, that's the entire job.
πΈ SYNOPSIS πΈ
int api_cmd_create_cell (struct hinic_api_cmd_chain *chain , int
cell_idx , struct hinic_api_cmd_cell *pre_node , struct
hinic_api_cmd_cell **node_vaddr );
it returns an int, bestie. don't forget that part π
π«Ά ARGUMENTS π«Ά
four of them. four! let's go one by one:
chainβ the API CMD specific chain that we're creating a cell for. it's astruct hinic_api_cmd_chain *, so yeah, it's the chain. the one and only. main character energy fr πcell_idxβ the index of the cell you wanna create. anint. pick your number wisely β¨pre_nodeβ the previous cell. it's astruct hinic_api_cmd_cell *. yes, previous, not next. that's not a typo, that's just how it is πnode_vaddrβ the returned virt addr of the cell. it's astruct hinic_api_cmd_cell **β double pointer, so the function can write the address back out to you. it's giving output parameter, it's giving "i'll fill this in for you" π
π DESCRIPTION π
okay so here's the whole deal, and honestly it's short and sweet:
Return 0 - Success, negative - Failure π
that's it. that's the description. 0 means slay, negative means something went sideways. that's the entire contract. periodt.
ngl bestie, that is genuinely all the original page says about behaviour, so i'm not gonna invent anything extra. we stay factual in this group chat β¨
π₯ SEE ALSO π₯
so many friends. an icon with a huge friend group, honestly. go read these next:
- the kernel file itself:
./drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.cβ literally the source, go look at it π¦ 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_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 i said. huge friend group. iykyk π
and that's the page!! π
cute little sign-off for you: this one comes from ./drivers/net/ethernet/huawei/..., dated October 2026, and it's filed under api_cmd_create_cell(9) β so when you're scrolling back through your manpage history, that's the name you're looking for π
bye bestie, go create some cells πβ¨π
π¦ 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