DOKK / manpages / debian 10 / freebsd-manpages / devtoname.9freebsd.en
DEVTONAME(9) Kernel Developer's Manual DEVTONAME(9)

devtonameconverts character device into a string indicating the device name

#include <sys/param.h>
#include <sys/conf.h>

const char *
devtoname(struct cdev *dev);

The () function returns a pointer to the name of the device passed to it. The name is whatever was set to it in ().

The devtoname() interface first appeared in FreeBSD 4.0

February 10, 2012 Debian