RTEMS Logo

RTEMS 4.6.2 On-Line Library


Configuration Space Manager cfg_close - Close a Configuration Space

PREV UP NEXT Bookshelf New Chapters

3.4.12: cfg_close - Close a Configuration Space

CALLING SEQUENCE:

#include <cfg.h>

int cfg_close(
  CFG           *cfgp
);

STATUS CODES:

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

EBADF
The cfgp argument does not refer to an open configuration space traversal stream.

DESCRIPTION:

The cfg_close() function closes a configuration space transversal stream represented by the CFG structure pointed at by the cfgp argument. All system resources allocated for this configuration space traversal stream should be deallocated. Upon return, the value of cfgp need not point to an accessible object of type CFG.

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