api_cmd_hw_restart(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ api_cmd_hw_restart(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– this one's a little function page from the Huawei hinic driver family, and honestly? it's short, it's sweet, and it does exactly one thing. let's get into it πŸŽ€


🌸 NAME 🌸

api_cmd_hw_restart β€” literally just restart the chain in the HW πŸ’… that's the whole vibe. the chain, in the hardware, restarted. periodt.


✨ SYNOPSIS ✨

int api_cmd_hw_restart (struct hinic_api_cmd_chain *chain );

so it takes one pointer to a struct hinic_api_cmd_chain and hands you back an int. that's it, that's the signature 🫢 copy it exactly, no cap.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • chain β€” the API CMD specific chain you wanna restart. like, this chain right here πŸ‘‰ the one that's specific to API CMD. she's the main character of this call 🌟

πŸ’œ DESCRIPTION πŸ’œ

here's the whole deal, and i mean the whole deal: it returns 0 on success, and a negative value on failure. that's the documented behaviour, fr fr β€” no extra lore, no hidden chapters, nothing else on the menu 😭

ngl it's giving "tiny function, big responsibility" energy. check that return value, bestie πŸ’€

🧚 SEE ALSO 🧚

the kernel file lives at ./drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c β€” go read it if you're feeling brave πŸ‘‘

and here's the whole friend group, all the sibling pages, every single one, no skipping πŸ™ˆ:


source: ./drivers/net/ethernet/huawei/... Β· date: October 2026 Β· page: api_cmd_hw_restart(9)

okay that's the page!! you ate that πŸ’– go restart that chain, bestie, and remember β€” negative means something went wrong, so maybe don't ignore it πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from