change_mac(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay so welcome to change_mac(9), straight outta the Kernel API Manual β€” this page is about change_mac: change(add or delete) mac address. That's it, that's the assignment, and honestly? iconic. πŸ’…

✨ SYNOPSIS ✨

here's the exact signature, bestie β€” do not freestyle it:

int change_mac (struct hinic_dev *nic_dev , const u8 *addr , u16 vlan_id
       , enum mac_op op );

🌸 ARGUMENTS 🌸

  • nic_dev β€” the nic device. yes, that one. 🫢
  • addr β€” the mac address. πŸŽ€
  • vlan_id β€” the vlan number to set with the mac.
  • op β€” add or delete the mac. choose your fighter, but only these two vibes. πŸ’…

πŸ’– DESCRIPTION πŸ’–

Return 0 - Success, negative - Failure. that's the whole return-value story: zero for success, negative for failure, periodt. ✨

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file: ./drivers/net/ethernet/huawei/hinic/hinic_port.c β€” go peek, iykyk. πŸ‘‘


🫢 source/version: ./drivers/net/ethernet/huawei/... β€” date: October 2026 β€” change_mac(9) out, bye bestie! πŸ’–

πŸ“¦ where this page comes from