hinic_port_get_cap(9)
π hinic_port_get_cap(9) β like, the port capabilities speedrun
okay bestie, so this is a page from the Kernel API Manual, and the star of the show is hinic_port_get_cap β yes, the whole function name, that's our girl, she's the main character here π
β¨ SYNOPSIS β¨
int hinic_port_get_cap (struct hinic_dev *nic_dev , struct
hinic_port_cap *port_cap );
literally just hand her two things and she does her little thing, no cap π
πΈ ARGUMENTS πΈ
nic_devβ the nic device π«Ά that's your actual network interface card, the hardware bestie in questionport_capβ returned port capabilities β this is where the good stuff lands, she fills it in for you
note: port_cap is the returned one, iykyk β that's the output, not the input π
π DESCRIPTION π
So like, hinic_port_get_cap returns the port capabilities, and that's the whole vibe:
- Return
0β Success π - negative β Failure π
periodt. that's it, that's the function. zero means slay, anything negative means it's giving error energy π
π¦ SEE ALSO π¦
Kernel file: ./drivers/net/ethernet/huawei/hinic/hinic_port.c
and the whole friend group of related pages, all iconic, all worth a read:
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_set_func_state(9)hinic_port_set_tso(9)
okay that's the whole page!! π this lil beauty comes from ./drivers/net/ethernet/huawei/... and it's dated October 2026 β so remember to cite her properly when you're out here flexing your kernel knowledge π§ π mwah, go read the source, ily, bye π
π¦ 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