dev_change_name(9)
π dev_change_name(9) β the Kernel API Manual page you didn't know you needed β¨
okay so picture this: you're deep in kernel land, it's 2am, and you just need to rename a network device. that's it. that's the whole page. it's dev_change_name(9) from the Kernel API Manual and honestly? she's short, she's sweet, she's giving "one job and she does it." π
πΈ NAME πΈ
dev_change_name β change name of a device π«
like literally just... changing a name. that's the vibe. no cap.
β¨ SYNOPSIS β¨
int dev_change_name (struct net_device *dev , const char *newname );
look at her. two args. clean. iconique. π
π¦ ARGUMENTS π¦
devβ the device. like, the actual device you're renaming. bestie, you gotta tell her which one. π«Άnewnameβ the name (or format string), and heads up: it must be at leastIFNAMSIZ. don't come in with a tiny string, she will Not be having it. π
π DESCRIPTION π
so you wanna change the name of a device? say less. this does exactly that. π₯
and here's the little extra sprinkle on top: you can pass format strings like "ethd" for wildcarding. the way that just... lets you pattern-match a name. iykyk. β¨
π RETURN π
0on success β slay, we ate, no crumbs. π-errnoon failure β ngl, that's the "it didn't work, go check yourerrno" situation. π
π§ SEE ALSO π§
the kernel file ./net/core/dev_api.c and honestly her whole friend group:
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_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)
main character energy across the board. go read them. obsessed. π
and that's the whole page bestie β no hidden lore, no secret options, no plot twists. just a rename function living her truth. π¦
mwah π that's a wrap from ./net/core β October 2026 edition, filed under dev_change_name(9). go rename something iconic, ily, bye! πβ¨
π¦ 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