RTEMS Logo

RTEMS 4.6.4 On-Line Library


Configuration Space Manager cfg_get - Get Configuration Node Value

PREV UP NEXT Bookshelf New Chapters

3.4.4: cfg_get - Get Configuration Node Value

CALLING SEQUENCE:

#include <cfg.h>

int cfg_get(
  const char  *cfgpath
  cfg_value_t *value
);

STATUS CODES:

A successful call to cfg_get() returns a value of zero and an unsuccessful call returns the errno.

ENAMETOOLONG
A component of a pathname exceeded NAME_MAX characters, or an entire path name exceed PATH_MAX characters while _POSIX_NO_TRUNC is in effect.
ENOENT
A component of cfgpath does not exist.
EACCES
Search permission is denied for a component of the path prefix.
EPERM
The calling process does not have the appropriate privileges.
ELOOP
A node appears more than once in the path specified by the cfgpath argument
ELOOP
More than SYMLOOP_MAX symbolic links were encountered during resolution of the cfgpath argument.

DESCRIPTION:

The cfg_get() function stores the value attribute of the configuration node identified by cfgpath, into the buffer described by the value pointer.

NOTES:

The _POSIX_CFG feature flag is defined to indicate this service is available.


PREV UP NEXT Bookshelf New Chapters

Copyright © 1988-2004 OAR Corporation