hns_xgmac_disable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… hns_xgmac_disable(9) β€” from the Kernel API Manual, bestie πŸŽ€

okay so real talk, this one's from the Kernel API Manual, page hns_xgmac_disable(9), and it does exactly one thing but it does it flawlessly. it's giving "quiet luxury" β€” no return value, no drama, just vibes and a port going night-night 😴✨


✨ NAME ✨

hns_xgmac_disable β€” disable xgmac port πŸ’€

like... that's it. that's the whole job. it disables the xgmac port. iconic, honestly. no notes. πŸ‘‘


🌸 SYNOPSIS 🌸

void hns_xgmac_disable (void *mac_drv , enum mac_commom_mode mode );

yes bestie, that spacing is exactly how it's written, don't come for me 🫢 and yes it returns void β€” it's a void girlie, it gives nothing back and it doesn't need to. main character energy fr fr πŸ’…

⚠️ tiny heads up: the enum is spelled mac_commom_mode β€” with the double m. that's not a typo I made, that's a typo the kernel made, and we respect it. copy it exactly or your build will simply pass away 😭

πŸ¦‹ ARGUMENTS πŸ¦‹

  • mac_drv β€” the mac driver. that's your pointer to the driver, your little handle on the whole situation, void * so it can be literally anything and the compiler just has to trust you. 🫑
  • mode β€” the mode of the mac port. it's an enum mac_commom_mode, so it's a whole mood, and you gotta tell the function which mode you're in. pick wisely, bestie. πŸŽ€

πŸ’– SEE ALSO πŸ’–

okay this is the part where the page just name-drops its entire friend group and honestly? obsessed. πŸ’œ

the kernel file this lives in:

./drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c

and the whole crew, no cap:

like that's a whole squad. and yeah, hns_xgmac_enable(9) is right there in the list β€” the yin to this yang, the on to this off, the un-disabling to this disabling 🌈 iykyk.


🧚 bestie reminder: this page is short because the function is short. don't go inventing extra flags or return codes in your head, there are none, and I will not be making any up for you. what you see is what you get. periodt. πŸ’€

and that's the page!! 🌸 source/version line says ./drivers/net/ethernet/hisilic... (yeah it's truncated in the original, not my fault, don't @ me πŸ™ˆ) and it's dated October 2026, which is so far in the future that honestly, slay, time traveller queen. that's the whole hns_xgmac_disable(9) moment, mwah πŸ’‹πŸ«Άβœ¨

πŸ“¦ where this page comes from