hinic_port_set_func_state(9)
π 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 atstateβ the state to set β¨ the state you want to set. it goes in thestateslot. 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 π:
change_mac(9)hinic_port_add_mac(9)hinic_port_del_mac(9)hinic_port_get_mac(9)hinic_port_set_mtu(9)hinic_port_add_vlan(9)hinic_port_del_vlan(9)hinic_port_set_rx_mode(9)hinic_port_link_state(9)hinic_port_set_state(9)hinic_port_get_cap(9)hinic_port_set_tso(9)
π 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
- 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