dev_change_proto_down(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 to
  • proto_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:


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