remove_mac_addr(9)
π remove_mac_addr(9) β a Kernel API Manual moment β¨
okay so bestie, welcome to remove_mac_addr(9) from the Kernel API Manual β yes the whole vibe is kernel API, and you're gonna slay this one fr fr π«Ά
πΈ NAME πΈ
remove_mac_addr β the lil function that removes a mac address from a network device π like it's literally its whole job and it ate
β¨ SYNOPSIS β¨
int remove_mac_addr (struct net_device *netdev , const u8 *addr );
look at her. iconic signature. no notes. π
π ARGUMENTS π
netdevβ the network device, your main character struct πaddrβ the mac address you wanna remove, bye bestie π¦
π DESCRIPTION π
so here's the tea β β it hands you back 0 for Success, and a negative value for Failure. that's it, that's the whole description, and honestly? she's lowkey efficient. not me being obsessed with a return value π
ngl bestie, remember it: 0 = Success β¨, negative = Failure π
π SEE ALSO π
- Kernel file
./drivers/net/ethernet/huawei/hinic/hinic_main.cβ go read it, iykyk π§ create_txqs(9)free_txqs(9)create_rxqs(9)free_rxqs(9)change_mac_addr(9)add_mac_addr(9)link_status_event_handler(9)nic_dev_init(9)
the whole squad fr fr β go say hi to all of them π«Άβ
and that's the page bestie!! ΛβΒ· ΝΝΝΝβ³β₯ this adorable lil number lives at ./drivers/net/ethernet/huawei/... and it's dated October 2026, and it signs off as remove_mac_addr(9) β periodt ππ
π¦ 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