hns_mac_get_inner_port_num(9)
β¨ hns_mac_get_inner_port_num(9) β the Kernel API Manual page, but make it make sense β¨
okay so bestie, welcome to the hns_mac_get_inner_port_num manual page π this is a Kernel API Manual situation, section 9 (iykyk, kernel devs live down here), and we're about to get into it.
πΈ NAME πΈ
hns_mac_get_inner_port_num β get mac table inner port number π
that's literally the whole job. it goes and grabs the inner port number from the mac table. no cap.
β SYNOPSIS β
int hns_mac_get_inner_port_num (struct hns_mac_cb *mac_cb , u8 vmid , u8
*port_num );
so it hands you back an int, and it wants three things: your mac_cb, a vmid, and a pointer to port_num. the way that signature wraps across two lines in the original? iconic, honestly, but we're keeping it exactly as written π«Ά
π ARGUMENTS π
quick vibe check on the three things you're passing in:
mac_cbβ the mac device, like, the main character of this whole function π you know it, you love it, it's yourstruct hns_mac_cb *.vmidβ the vm id. au8. which vm are we talking about, bestie, that's what this is.port_numβ the port number, passed as au8 *so it can be filled in. pointer gang rise up π¦
π¦ SEE ALSO π¦
if you liked this page you're gonna be obsessed with these:
- Kernel file
./drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.cβ yes, that's where the source lives, go take a peek π§ hns_mac_need_adjust_link(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_get_cfg(9)hns_mac_init(9)
like, that's the whole friend group right there ππ
ngl this page is short and sweet, so there's not a lot of drama to report β just a function, its three args, and the see-also section doing the absolute most π
and that's the tea ππ΅ sign-off time: this flirty little page came from source/version ./drivers/net/ethernet/hisilic... (yes, it's literally truncated like that in the footer, don't come for me π) dated October 2026, and it's filed under hns_mac_get_inner_port_num(9). periodt. π
β¨
π¦ 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