octep_ctrl_net_set_mac_addr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… octep_ctrl_net_set_mac_addr β€” Kernel API Manual, bestie edition ✨

okay so real talk: you're looking at octep_ctrl_net_set_mac_addr(9), live from the Kernel API Manual section 9, and she is exactly what it says on the tin β€” this is the function that slides a MAC address into the firmware. no cap. πŸŽ€


🌸 NAME 🌸

octep_ctrl_net_set_mac_addr β€” set the MAC address in the firmware. that's the whole job, and she does it. πŸ¦‹


✨ SYNOPSIS ✨

int octep_ctrl_net_set_mac_addr (struct octep_device *oct , int vfid ,
       u8 *addr , bool wait_for_response );

like, copy that exactly, don't get creative with it πŸ™ˆ


🫢 ARGUMENTS 🫢

  • oct β€” non-null pointer to struct octep_device. non-null, bestie, I'm serious, she said non-null.
  • vfid β€” index of the virtual function. it's giving "which VF are we talking about" energy πŸ”₯
  • addr β€” non-null pointer to the MAC address. also non-null. two non-nulls in one function, we love a consistent queen πŸ‘‘
  • wait_for_response β€” poll for response. yes, it's a bool, yes, it does the thing it says 🌈

πŸ’– DESCRIPTION πŸ’–

return value: 0 on success, -errno on failure. that's it, that's the description, she's short and iconic πŸ’…

ngl the whole spec is basically "give me a valid device, a valid address pointer, and tell me whether to poll" β€” and if it goes sideways you get a negative errno back. periodt.

πŸ”₯ SEE ALSO πŸ”₯

the kernel file in question, for the curious:

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

and the whole friend group, alphabetically-ish, all in section 9 because they're a package deal 🧚:


and that's the page!! πŸ“ sign-off time: this one came from ./drivers/net/ethernet/marvell..., dated October 2026, and it's literally titled octep_ctrl_net_set_mac_addr(9). slay, go set some MAC addresses, ily, bye πŸ’œ

πŸ“¦ where this page comes from