dev_get_alias(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, you're looking at dev_get_alias(9) from the Kernel API Manual, and this is the page for getting the ifalias of a device. iconic little helper, honestly. ✨

dev_get_alias β€” get ifalias of a device. periodt.

✨ SYNOPSIS ✨

int dev_get_alias (const struct net_device *dev , char *name , size_t
       len );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device. literally the net_device in question.
  • name β€” buffer to store name of ifalias. this is where the alias name goes, bestie.
  • len β€” size of buffer. gotta tell it how much room name has.

πŸ¦‹ DESCRIPTION πŸ¦‹

so this one gets the ifalias for a device. that's the whole assignment. lowkey simple.

⚠️ but the caller must make sure dev cannot go away β€” e.g. hold an rcu read lock or own a reference count to the device. no cap, keeping dev alive is on you. 😭

🌈 SEE ALSO 🌈

Kernel file ./net/core/dev.c is the home base. the full squad is:

mwah πŸ’‹ β€” this page lives under ./net/core and it's dated October 2026. go get that ifalias, bestie. 🫢

πŸ“¦ where this page comes from