Changeset dd0f326 in rtems for cpukit/include


Ignore:
Timestamp:
Oct 12, 1999, 7:10:46 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
51435fc7
Parents:
e2116f9
Message:

Added rtems_filesystem_freenode() macro and added calls at appropriate
places to make sure memory allocated for filesystem specifif nodes
gets freed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/libio_.h

    re2116f9 rdd0f326  
    159159            return -1;                                \
    160160      }                                               \
     161  } while (0)
     162
     163/*
     164 *  rtems_filesystem_freenode
     165 *
     166 *  Macro to free a node.
     167 */
     168
     169#define rtems_filesystem_freenode( _node ) \
     170  do { \
     171    if ( (_node)->ops->freenod ) \
     172      (*(_node)->ops->freenod)( (_node) ); \
    161173  } while (0)
    162174
Note: See TracChangeset for help on using the changeset viewer.