api_cmd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME

okay so this is api_cmd β€” the API CMD command, bestie. It lives in the Kernel API Manual and it’s giving β€œtiny kernel helper with main character energy” ✨ api_cmd(9) is literally right here to explain the vibe 🫢


✨ SYNOPSIS

int api_cmd (struct hinic_api_cmd_chain *chain , enum hinic_node_id dest
       , u8 *cmd , u16 cmd_size );

πŸŽ€ ARGUMENTS

  • chain β€” the chain for the command, aka the whole lil setup carrying it πŸ’…
  • dest β€” destination node on the card that will receive the command. Slay, it knows where it’s going πŸ“
  • cmd β€” command data, the actual payload vibe πŸ’Œ
  • cmd_size β€” the command size, aka how much data we’re working with πŸ“

πŸ¦‹ DESCRIPTION

Return 0 - Success, negative - Failure. That’s the whole mood: 0 is the win, negative is the not-win 😭 no cap.


🌈 SEE ALSO

Bestie, if you wanna keep reading, go peep the Kernel file ./drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c and these related pages too πŸ‘€


mwah πŸ’‹ this page’s source/version is ./drivers/net/ethernet/huawei/... and it’s dated October 2026 β€” api_cmd(9), signing off fr fr 🫢✨

πŸ“¦ where this page comes from