RTEMS Logo

RTEMS 4.6.4 On-Line Library


Configuration Space Manager cfg_unmount - Unmount a Configuration Space

PREV UP NEXT Bookshelf New Chapters

3.4.2: cfg_unmount - Unmount a Configuration Space

CALLING SEQUENCE:

#include <cfg.h>

int cfg_unmount(
  const char     *cfgpath
);

STATUS CODES:

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

EPERM
The caller does not have the appropriate privileges.
EACCES
Search permission is denied for a component of the path prefix.
ENOENT
A component of cfgpath does not exist.
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.
EINVAL
The requested node is not the distinguished node of a mounted configuration space.
EBUSY
One or more processes has an open configuration traversal stream for the configuration space whose distinguished node is referenced by the cfgpath argument.
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_umount() function unmaps the configuration space whose distinguished node is mapped in the active space at the location defined by cfgpath configuration pathname. All system resources allocated for this configuration space should be deallocated.

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