netif_set_mtu_ext(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– netif_set_mtu_ext(9) πŸ’–

okay so hi bestie, welcome to the Kernel API Manual ✨ β€” yes that's the manual this page lives in, and yes you're about to read a whole manpage about changing one number. slay. let's go πŸŽ€


🌸 NAME 🌸

netif_set_mtu_ext β€” Change maximum transfer unit πŸ¦‹


⭐ SYNOPSIS ⭐

int netif_set_mtu_ext (struct net_device *dev , int new_mtu , struct
       netlink_ext_ack *extack );

like, that's the whole signature. three args. no cap. πŸ’…


🫢 ARGUMENTS 🫢

  • dev β€” the device πŸ‘‘ like, the network device you're doing this to.
  • new_mtu β€” the new transfer unit ✨ the fresh number you want it to be.
  • extack β€” netlink extended ack πŸ’Œ the extended-ack struct that rides along.

πŸ’œ DESCRIPTION πŸ’œ

Change the maximum transfer size of the network device. that's it. that's the vibe. one job, done iconically 🧚


🌈 RETURN 🌈

0 on success, -errno on failure. so like, zero means you ate, and a negative errno means 😭 something went sideways.


πŸ”₯ SEE ALSO πŸ”₯

the whole squad, fr fr β€” these all live in the kernel file ./net/core/dev.c:


ok that's literally the whole page, go forth and set some MTUs bestie πŸ¦‹βœ¨

kisses, this page shipped from ./net/core in October 2026 β€” Kernel API Manual era, periodt πŸ’…πŸŽ€

πŸ“¦ where this page comes from