best_dev_name(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

Okay bestie, welcome to best_dev_name(9) from the Kernel API Manual β€” this one is literally about getting the "best" device name. ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

const char * best_dev_name (struct device *dev );

🌸 ARGUMENTS 🌸

  • dev β€” the device, bestie. That’s the whole argument. πŸ’…

πŸŽ€ DESCRIPTION πŸŽ€

So this function returns the device tree compatible name if the device has a DT node. If it doesn’t have one, it returns the device name instead. No cap.

The reason this exists is lowkey iconic: clkdev lookups are limited to 20 chars for dev_id, and when you’re using device tree, dev_name(dev) is much longer than that. So yeah β€” this is the little helper that saves the vibe. 🫢

⭐ SEE ALSO ⭐


And that’s the page, bestie! πŸ’– Shoutout to the source/version at ./drivers/clk/davinci, with a date stamp of October 2026 β€” best_dev_name(9) said what it said, periodt. πŸ‘‘πŸŒˆ

πŸ“¦ where this page comes from