hns_mac_get_cfg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– hns_mac_get_cfg(9) β€” Kernel API Manual πŸ’–

okay so bestie, welcome to hns_mac_get_cfg(9), a little kernel API moment from the Kernel API Manual ✨


🌸 NAME 🌸

hns_mac_get_cfg β€” get mac cfg from dtb or acpi table πŸŽ€

like literally, it goes and grabs the mac config for you, no cap πŸ’…


✨ SYNOPSIS ✨

int hns_mac_get_cfg (struct dsaf_device *dsaf_dev , struct hns_mac_cb *mac_cb );

that's the whole vibe, two pointers and an int return, she's lowkey simple πŸ¦‹


🫢 ARGUMENTS 🫢

  • dsaf_dev β€” dsa fabric device struct pointer πŸ’« (yes, it's the dsa fabric device one, main character energy fr fr)
  • mac_cb β€” mac control block return 0 - success , negative --fail 🌈
ngl that second bullet is doing the MOST β€” mac_cb is the mac control block, and you're looking at return 0 for success and negative for fail 😭 keep that energy in mind, bestie

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c β€” go read the source, iykyk πŸ’œ

and the whole friend group of related calls, all iconic, all worth a look:


πŸ’€ tiny heads up from the original page, no edits from me: the footer path shows up truncated as ./drivers/net/ethernet/hisilic... β€” that's just how it is, don't come for me

and that's the page!! πŸ“ mwah πŸ’‹ this little cutie is dated October 2026 and comes to you from ./drivers/net/ethernet/hisilic... β€” slay, periodt, go read your kernel docs bestie πŸ§šβ€β™€οΈπŸ’–πŸŒΈ

πŸ“¦ where this page comes from