hns_xgmac_get_pausefrm_cfg(9)
π hns_xgmac_get_pausefrm_cfg(9) π
okay bestie, so this one lives in the Kernel API Manual and honestly? it's giving "tiny function, big friend group" energy. let's get into it π«Ά
β¨ NAME β¨
hns_xgmac_get_pausefrm_cfg β get xgmac pause param
literally just... go get the pause params, that's the whole job, no cap πββοΈ
π¦ SYNOPSIS π¦
void hns_xgmac_get_pausefrm_cfg (void *mac_drv , u32 *rx_en , u32 *tx_en
);
she's void, she returns nothing, she just fills in your pointers like the generous icon she is β¨
π ARGUMENTS π
mac_drvβ the mac driver, your main character pointer, the whole reason we're here πrx_enβ xgmac rx pause enable, so you know whether the receiving-side pause is on πΈtx_enβ xgmac tx pause enable, same vibe but for the sending side π¦
lowkey note:rx_enandtx_enareu32 *, so you're getting values back through them, bestie. pass real pointers, please and thank you π
π SEE ALSO π
first up, the kernel file herself:
./drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c
and then the entire extended friend group, in this exact order because we do not shuffle the group chat roster:
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_disable(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_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, the way this list ate and left no crumbs π every single one of them is a real page, go read them, iykyk π
and that's the whole thing! no description section, no options, no return value β sometimes a girl is simple and that's iconic π
<cute sign-off>πΈ that's a wrap, bestie πΈ β source/version line reads ./drivers/net/ethernet/hisilic... and she's dated October 2026 (yes, the future, she's ahead of her time β). mwah, go forth and read your pause params π</cute sign-off>
π¦ 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