hns_mac_set_autoneg(9)
β¨ hns_mac_set_autoneg(9) β¨
okay so bestie, welcome to the Kernel API Manual π β this one's hns_mac_set_autoneg(9) and it's literally the little function that flips the autonegotiation switch on your HNS MAC. short king, but iconic π
πΈ NAME πΈ
hns_mac_set_autoneg β set auto autonegotiation β¨
π¦ SYNOPSIS π¦
int hns_mac_set_autoneg (struct hns_mac_cb *mac_cb , u8 enable );
she's giving "small signature, big responsibility" π
returns an int, takes two args, no cap.
π ARGUMENTS π
mac_cbβ the mac control block π«Ά like, the whole vibe of the MAC lives in here, so pass it in and let her cook.enableβ enable or not π that's literally it, on or off, yes or no, the binary moment of truth. and bestie, the return situation is:0- success, negative --fail π so if it comes back negative she's not having a good day.
ngl the return value is doing double duty in this one β 0 means slay, anything negative means π. keep an eye on it.
π SEE ALSO π
the kernel file that spawned her, first of all:
./drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c
and the whole friend group π§ (all of these are (9) sections, iykyk):
hns_mac_need_adjust_link(9)hns_mac_get_inner_port_num(9)hns_mac_change_vf_addr(9)hns_mac_port_config_bc_en(9)hns_mac_vm_config_bc_en(9)hns_mac_get_autoneg(9)hns_mac_get_pauseparam(9)hns_mac_set_pauseparam(9)hns_mac_init_ex(9)hns_mac_get_info(9)hns_mac_get_mode(9)hns_mac_get_cfg(9)hns_mac_init(9)
and that's the whole page, bestie π no filler, all facts, main character energy only ππ
sign-off time π : this cutie came out of the source at ./drivers/net/ethernet/hisilic... in October 2026, and she's filed under hns_mac_set_autoneg(9) forever and ever πΈπ«Ά 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