hns_mac_get_autoneg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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: return 0 - success , negative --fail. so like, 0 means 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:


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