of_alias_get_id(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, welcome to of_alias_get_id(9) from the Kernel API Manual ✨ This one gets the alias id for the given device_node β€” that's literally the whole name vibe, and it's iconic.

🌸 SYNOPSIS 🌸

The signature is giving exactly this, no cap:

int of_alias_get_id (const struct device_node *np , const char *stem );

πŸŽ€ ARGUMENTS πŸŽ€

  • np β€” pointer to the given device_node 🫢
  • stem β€” alias stem of the given device_node πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

So the function travels the lookup table to get the alias id for the given device_node and alias stem. That's the lore, bestie β€” lookup table travel, alias id acquired, main character energy ⭐

πŸ‘‘ RETURN πŸ‘‘

The alias id if found. Periodt. πŸ’–

πŸ”₯ SEE ALSO πŸ”₯

Kernel file: ./drivers/of/base.c

bye bestie 🫢 β€” source: ./drivers/of, date: October 2026 πŸ’œ

πŸ“¦ where this page comes from