RTEMS Logo

RTEMS 4.6.4 On-Line Library


Configuration Space Manager cfg_mknod - Create a Configuration Node

PREV UP NEXT Bookshelf New Chapters

3.4.3: cfg_mknod - Create a Configuration Node

CALLING SEQUENCE:

#include <cfg.h>

int cfg_mknod(
  const char   *cfgpath,
  mode_t        mode,
  cfg_type_t    type
);

STATUS CODES:

A successful call to cfg_mknod() 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 the path prefix does not exist.
EACCES
Search permission is denied for a component of the path prefix.
EPERM
The calling process does not have the appropriate privilege.
EEXIST
The named node exists.
EINVAL
The value of mode is invalid.
EINVAL
The value of type is invalid.
ELOOP
A node appears more than once in the path specified by the cfg_path argument
ELOOP
More than SYMLOOP_MAX symbolic links were encountered during resolution of the cfgpath argument.
EROFS
The named node resides on a read-only configuration space.

DESCRIPTION:

The cfg_mknod() function creates a new node in the configuration space which contains the pathname prefix of cfgpath. The node name is defined by the pathname suffix of cfgpath. The node permissions are specified by the value of mode. The node type is specified by the value of type.

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