hns_mac_need_adjust_link(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 🌈:

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