devfs_dev_to_prom_name -
#include <device_info.h> int devfs_dev_to_prom_name(char *dev_path, char *prom_path)
It is the name of a device in the logical or physical device namespace.
It is the prom version of the device name, prom_path. It should be large enough to contain the result, and is supplied by the user.
Converts logical kernel device path to prom device path.
The devfs_dev_to_prom_name() function returns the following values:
If successful, prom_path is returned in the prom_path variable.
Operation failed. The possible causes of failure are:
If prom_path ordev_path is NULL.
If dev_path is too long, that is >MAXPATHLEN.
If dev_path does not start with a /.
If dev_path is invalid.
Prom is not supported on the platform.
No permission to read prom.
On other prom open error.