hns_mac_need_adjust_link(9)
π hns_mac_need_adjust_link(9) β a Kernel API Manual moment
okay so bestie, welcome to the hns_mac_need_adjust_link(9) page π this is a kernel API manual entry and it's short, it's sweet, and it's lowkey doing exactly one job. Let's get into it β¨
β¨ NAME β¨
hns_mac_need_adjust_link β check is need change mac speed and duplex register π¦
like, the whole function is a vibe check for whether the mac speed and duplex register needs adjusting. that's it. that's the post. no cap.
πΈ SYNOPSIS πΈ
bool hns_mac_need_adjust_link (struct hns_mac_cb *mac_cb , int speed ,
int duplex );
so it returns a bool (yes/no, iconic), it's called hns_mac_need_adjust_link, and it takes three things β a struct hns_mac_cb * named mac_cb, an int named speed, and an int named duplex. yes the spacing is exactly like that in the original, we don't touch the code, that's the law π
π ARGUMENTS π
mac_cbβ the mac device, she's the main character of this call π«Άspeedβ the phy device speed, i.e. the number you're bringing in for the vibe check βduplexβ the phy device duplex, same energy, second number, also getting checked π₯
that's the full roster. three arguments. no surprises. periodt.
π SEE ALSO π
first up, the actual kernel file this lives in β go read the source, it's giving lore:
Kernel file ./drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c
and then the whole friend group of related calls, all of them (9) section, all of them hns_mac besties π:
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_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)
literally the whole squad π go read them all, iykyk.
quick reminder bestie: this page is a short one β the NAME line is the entire description we've got, so don't go assuming extra behaviour that isn't written here. if you need more, the source file above is right there π
and that's a wrap, babe π this page came from the kernel file path starting ./drivers/net/ethernet/hisilic... and it's dated October 2026 β yes, future energy, she's ahead of her time πβ¨ mwah, go debug something iconic π¦
π¦ 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