devtoname(9) converts character device into a string indicating the device name


In sys/param.h In sys/conf.h Ft const char * Fn devtoname struct cdev *dev


The Fn devtoname function returns a pointer to the name of the device passed to it. The name is whatever was set to it in Fn make_dev .


The Fn devtoname interface first appeared in Fx 4.0