hns_mac_set_autoneg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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):


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