dev_change_carrier(9)
π dev_change_carrier(9) π
okay so bestie, welcome to the Kernel API Manual π β this is the page for dev_change_carrier(9), and it is literally the shortest little guy in the whole dev_api family. no cap. let's get into it β¨
πΈ NAME πΈ
dev_change_carrier β change device carrier π¦
β¨ SYNOPSIS β¨
int dev_change_carrier (struct net_device *dev , bool new_carrier );
that's it. that's the whole signature. she's compact and she knows it π
π ARGUMENTS π
devβ the device π (the one whose carrier you're about to mess with)new_carrierβ the new value β (like, the carrier value you want it to have now)
π DESCRIPTION π
Change device carrier. fr fr, that's the whole description β it changes the device carrier, periodt. lowkey iconic how little it needs to say π
π₯ RETURN π₯
0on success π«Ά slay-errnoon failure π (you know the drill, the negative errno tells you what went wrong)
π SEE ALSO π
it's giving family reunion β the whole squad lives in the kernel file ./net/core/dev_api.c and honestly they're all must-follows:
dev_change_name(9)dev_set_alias(9)dev_change_flags(9)dev_set_group(9)dev_change_net_namespace(9)dev_change_tx_queue_len(9)dev_change_proto_down(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)
π reminder bestie: this page does not promise anything beyond0on success and-errnoon failure. don't go inventing extra return values, iykyk.
okay that's the whole page, you ate that ππ
β this gem comes from ./net/core, dated October 2026, and it's filed under dev_change_carrier(9). mwah, go read the other dev_api pages now, ily π§π
π¦ 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