hns_mac_get_inner_port_num(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 your struct hns_mac_cb *.
  • vmid β€” the vm id. a u8. which vm are we talking about, bestie, that's what this is.
  • port_num β€” the port number, passed as a u8 * so it can be filled in. pointer gang rise up πŸ¦‹

πŸ¦‹ SEE ALSO πŸ¦‹

if you liked this page you're gonna be obsessed with these:

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