best_dev_name(9)
π 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 β
- Kernel file
./drivers/clk/davinci/psc.c struct davinci_lpsc_clk(9)davinci_lpsc_clk_register(9)
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
- 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