octep_ctrl_net_get_mac_addr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

octep_ctrl_net_get_mac_addr β€” bestie, this is the one that gets the MAC address from firmware πŸ’…

Oh and hi, welcome to the Kernel API Manual page for it β€” yes, that's the manual name, we're being fancy today πŸŽ€


🌸 SYNOPSIS 🌸

int octep_ctrl_net_get_mac_addr (struct octep_device *oct , int vfid ,
u8 *addr );

That's the whole vibe check right there β€” an int comes back, and you hand it three things. Slay.


πŸŽ€ ARGUMENTS πŸŽ€

  • oct β€” a pointer to struct octep_device, and it is non-null. Like, don't come at it with a NULL, it's not that kind of function πŸ™ˆ
  • vfid β€” the index of the virtual function. That's the number, bestie 🧚
  • addr β€” a pointer to the mac address, also non-null fr fr πŸ’–
Lowkey note: both oct and addr are specified as non-null, so don't be out here passing NULL and acting surprised, okay? 😭

πŸ’– DESCRIPTION πŸ’–

Here's the return value, and this is literally the whole story:

  • 0 on success πŸ”₯
  • -errno on failure πŸ’€

That's it. That's the function. She's small, she's iconic, she gets the MAC address from firmware and she goes home. Periodt. πŸ‘‘


πŸ¦‹ SEE ALSO πŸ¦‹

The kernel file lives right here, no cap:

./drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.h

And here's the whole friend group, go say hi 🫢


Okay bestie, that's the page!! πŸ’œ Sourced from ./drivers/net/ethernet/marvell..., dated October 2026, and it's the octep_ctrl_net_get_mac_addr(9) page β€” mwah, go get that MAC address πŸ“βœ¨

πŸ“¦ where this page comes from