hinic_port_set_func_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… hinic_port_set_func_state β€” from the Kernel API Manual, section 9, bestie ✨

okay so you found a kernel function and you're like "what does this even do" β€” valid. it's hinic_port_set_func_state, and the whole personality of this page is: set func device state. that's it, that's the vibe. πŸŽ€


✨ SYNOPSIS ✨

int hinic_port_set_func_state (struct hinic_dev *nic_dev , enum
hinic_func_port_state state );

like, copy it exactly, please, no freestyling the signature πŸ™ˆ


🌸 ARGUMENTS 🌸

  • nic_dev β€” the nic device πŸ’– this is your main character, the thing you're poking at
  • state β€” the state to set ✨ the state you want to set. it goes in the state slot. yes it's named that on purpose 😭

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea: it returns 0 on Success, and a negative number on Failure. that's literally the whole description. no cap. 🫢

ngl if you get a negative back, that's not slay, that's a failure β€” the manpage says so, not me πŸ’€

⭐ SEE ALSO ⭐

bestie, the actual source lives in this kernel file:

  • ./drivers/net/ethernet/huawei/hinic/hinic_port.c

and the whole friend group β€” the related functions, each with their own (9) section, all listed, no skips, iykyk πŸ‘‘:


🌈 the lil sign-off πŸŽ€

this page came from ./drivers/net/ethernet/huawei/... and it's dated October 2026 β€” so it's lowkey from the future, which is iconic, and it's sitting right there in the Kernel API Manual under hinic_port_set_func_state(9). obsessed. periodt. πŸ’œπŸŒΈ

πŸ“¦ where this page comes from