hns_mac_get_cfg(9)
π 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_cbis the mac control block, and you're looking at return0for 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:
hns_mac_need_adjust_link(9)hns_mac_get_inner_port_num(9)hns_mac_change_vf_addr(9)hns_mac_port_config_bc_en(9)hns_mac_vm_config_bc_en(9)hns_mac_get_autoneg(9)hns_mac_get_pauseparam(9)hns_mac_set_autoneg(9)hns_mac_set_pauseparam(9)hns_mac_init_ex(9)hns_mac_get_info(9)hns_mac_get_mode(9)hns_mac_init(9)
π 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
- 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