change_mac(9)
π 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. π
hinic_port_add_mac(9)hinic_port_del_mac(9)hinic_port_get_mac(9)hinic_port_set_mtu(9)hinic_port_add_vlan(9)hinic_port_del_vlan(9)hinic_port_set_rx_mode(9)hinic_port_link_state(9)hinic_port_set_state(9)hinic_port_set_func_state(9)hinic_port_get_cap(9)hinic_port_set_tso(9)
π«Ά source/version: ./drivers/net/ethernet/huawei/... β date: October 2026 β change_mac(9) out, bye bestie! π
π¦ 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