hns_mac_get_pauseparam(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– hns_mac_get_pauseparam(9) β€” like, the Kernel API Manual page, bestie πŸ’–

okay so real talk, we're deep in the Kernel API Manual today and the star of the show is hns_mac_get_pauseparam. Yes the whole manpage is named after it. Main character energy fr fr. ✨


🌸 NAME 🌸

hns_mac_get_pauseparam β€” set rx & tx pause parameter

yes bestie that's literally what the NAME line says, "set" and everything, and I'm not gonna gaslight you by pretending otherwise. We report, we don't editorialize. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

void hns_mac_get_pauseparam (struct hns_mac_cb *mac_cb , u32 *rx_en ,
u32 *tx_en );

it's a void function, so like… it returns nothing, it just does the thing and fills in your pointers. Very "I don't start drama, I just deliver results" of it. πŸŽ€


πŸŽ€ ARGUMENTS πŸŽ€

  • mac_cb β€” the mac control block πŸ’– the whole main character struct, the one that holds the vibe together
  • rx_en β€” rx enable status 🌸 you pass in a u32 * and it comes back holding the rx enable status
  • tx_en β€” tx enable status 🌈 and it also says return 0 - success , negative --fail β€” so like, 0 means slay, anything negative means 😭 nope

⭐ SEE ALSO ⭐

the kernel file this lives in, in all its glory:

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

and the whole friend group, no one left out, we love a full squad 🫢:


ngl the source path at the bottom of the page is literally cut off mid-word β€” ./drivers/net/ethernet/hisilic... β€” so that's just how it is, we don't fix, we don't guess, we respect the truncation πŸ™ˆ

and that's the page!! sign-off time: this little gem is dated October 2026, lives under that ./drivers/net/ethernet/hisilic... source line, and the manual itself is hns_mac_get_pauseparam(9) β€” periodt. go read your kernel source bestie, ily, drink water πŸ’œπŸ§šβ€β™€οΈπŸ“

πŸ“¦ where this page comes from