wait_for_api_cmd_completion(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– wait_for_api_cmd_completion(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” this lil page is all about wait_for_api_cmd_completion, and honestly? the name is giving exactly what it is: you wait for a command to complete. no plot twists, no cap. πŸŽ€


✨ NAME ✨

wait_for_api_cmd_completion β€” wait for command to complete πŸ¦‹

like, literally that. you call it, you chill, the command finishes. main character energy but make it a blocking call.


🌸 SYNOPSIS 🌸

int wait_for_api_cmd_completion (struct hinic_api_cmd_chain *chain );

copy it exactly like that, spacing and all, i don't make the rules (i do enforce them tho πŸ’…).


🧚 ARGUMENTS 🧚

  • chain β€” the chain for the command πŸ’« that's your one and only input, she's carrying the whole function on her back fr fr.

πŸ”₯ DESCRIPTION πŸ”₯

the whole mood of this function, in the original's own words:

Return 0 - Success, negative - Failure

so yeah. 0 means slay, we ate, everything's fine ✨. anything negative means it did not go well 😭 β€” check that return value, i'm begging you. lowkey the most important two lines on this whole page and they're also the shortest. iconic honestly.


πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file lives right here, go read the source if you wanna be that girl:

./drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c

and here's the whole friend group β€” every single one of them, no skipping πŸ™ˆ:


okay that's the whole page bestie, go forth and poll responsibly πŸ’œ

mwah πŸ’‹ this came from ./drivers/net/ethernet/huawei/..., dated October 2026, and it's page wait_for_api_cmd_completion(9) of the Kernel API Manual β€” see you in the next one, ily 🫢✨

πŸ“¦ where this page comes from