dev_change_proto_down(9)
π dev_change_proto_down(9)
okay bestie, welcome to the Kernel API Manual β today's main character is dev_change_proto_down, and no, the name isn't as scary as it looks π«Ά
β¨ NAME β¨
dev_change_proto_down β sets the carrier according to proto_down, literally that's the whole gig π
β¨ SYNOPSIS β¨
int dev_change_proto_down (struct net_device *dev , bool proto_down );
β¨ ARGUMENTS β¨
devβ the device π like, the net device you're doing this toproto_downβ the new value π yep, that's it, just the new value
β¨ RETURN β¨
0 on success, and -errno on failure π (so like, if it doesn't slay, you get a negative errno back, ok?)
β¨ SEE ALSO β¨
the Kernel file ./net/core/dev_api.c is the plug for all of these legends:
dev_change_name(9)dev_set_alias(9)dev_change_flags(9)dev_set_group(9)dev_change_net_namespace(9)dev_change_carrier(9)dev_change_tx_queue_len(9)dev_open(9)dev_close(9)dev_disable_lro(9)dev_set_promiscuity(9)dev_set_allmulti(9)dev_set_mac_address(9)netdev_state_change(9)
and that's the whole page, bestie β short, sweet, and fully iconic β¨
source pls: ./net/core πΈ dated October 2026 π¦ catch u in the next manpage, mwah π
π¦ 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