Go to main content

man pages section 3: Extended Library Functions, Volume 1

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

devfs_dev_to_prom_name (3DEVINFO)

Name

devfs_dev_to_prom_name -

Synopsis

#include <device_info.h>
		int devfs_dev_to_prom_name(char *dev_path, char *prom_path)

Parameters

dev_path

It is the name of a device in the logical or physical device namespace.

prom_path

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.

Description

Converts logical kernel device path to prom device path.

Return Values

The devfs_dev_to_prom_name() function returns the following values:

0

If successful, prom_path is returned in the prom_path variable.

<0

Operation failed. The possible causes of failure are:

DEVFS_INVAL

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.

DEVFS_NOTUUP

Prom is not supported on the platform.

DEVFS_PERM

No permission to read prom.

DEVFS_ERR

On other prom open error.