hns_xgmac_disable(9)
π 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 spelledmac_commom_modeβ with the doublem. 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 anenum 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:
hns_xgmac_tx_enable(9)hns_xgmac_rx_enable(9)hns_xgmac_lf_rf_insert(9)hns_xgmac_lf_rf_control_init(9)hns_xgmac_enable(9)hns_xgmac_pma_fec_enable(9)hns_xgmac_init(9)hns_xgmac_config_pad_and_crc(9)hns_xgmac_pausefrm_cfg(9)hns_xgmac_set_tx_auto_pause_frames(9)hns_xgmac_config_max_frame_length(9)hns_xgmac_free(9)hns_xgmac_get_info(9)hns_xgmac_get_pausefrm_cfg(9)hns_xgmac_get_link_status(9)hns_xgmac_get_regs(9)hns_xgmac_get_stats(9)hns_xgmac_get_strings(9)hns_xgmac_get_sset_count(9)hns_xgmac_get_regs_count(9)
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
- 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