octep_ctrl_net_get_mac_addr(9)
β¨ 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 tostruct 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: bothoctandaddrare 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:
0on success π₯-errnoon 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 π«Ά
octep_ctrl_net_init(9)octep_ctrl_net_get_link_status(9)octep_ctrl_net_set_link_status(9)octep_ctrl_net_set_rx_state(9)octep_ctrl_net_set_mac_addr(9)octep_ctrl_net_get_mtu(9)octep_ctrl_net_set_mtu(9)octep_ctrl_net_get_if_stats(9)octep_ctrl_net_get_link_info(9)octep_ctrl_net_set_link_info(9)octep_ctrl_net_recv_fw_messages(9)octep_ctrl_net_get_info(9)octep_ctrl_net_dev_remove(9)octep_ctrl_net_set_offloads(9)octep_ctrl_net_uninit(9)
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
- 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