hns_mac_get_autoneg(9)
π hns_mac_get_autoneg β from the section 9 Kernel API Manual, bestie β¨
okay so picture this: we're deep in the kernel, right, in the section 9 manual pages, and this little function is here to spill the tea on whether autonegotiation is, like, on. no cap. it's the getter to hns_mac_set_autoneg's setter, and honestly? iconic behavior.
π NAME π
hns_mac_get_autoneg β get auto autonegotiation π«
like literally, that's the whole job. it gets you the autoneg situation.
π¦ SYNOPSIS π¦
void hns_mac_get_autoneg (struct hns_mac_cb *mac_cb , u32 *auto_neg );
so she takes a struct hns_mac_cb * and a u32 *, and she returns void. no frills, no drama, just vibes. π
πΈ ARGUMENTS πΈ
mac_cbβ the mac control block π«Ά. this is the little context bundle that tells the function which MAC we're even talking about. main character energy.auto_negβ output pointer to autoneg result β¨, and listen, this is where the return situation lives: return0- success , negative --fail. so like,0means slay, anything negative means it did NOT eat π. write your result into this pointer, bestie.
π SEE ALSO π
the kernel file this lives in is ./drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c β go read it, iykyk π
and here's the whole friend group, all referenced exactly like this:
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_pauseparam(9)hns_mac_set_autoneg(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)
lowkey a whole squad of hns_mac_* functions and not one of them is boring. periodt. π
and that's the page, bestie π this came out of ./drivers/net/ethernet/hisilic..., dated October 2026, and it's literally hns_mac_get_autoneg(9) β go forth and get your autoneg, ily ππ¦β¨
π¦ 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