hns_xgmac_get_pausefrm_cfg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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_en and tx_en are u32 *, 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