source: rtems/cpukit/libcsupport/src/freenode.c @ da154e14

4.11
Last change on this file since da154e14 was da154e14, checked in by Sebastian Huber <sebastian.huber@…>, on May 14, 2012 at 2:55:41 PM

Filesystem: Move operations to mount table entry

The scope of the file system operations is the file system instance.
The scope of the file system node handlers is the file location. The
benefit of moving the operations to the mount table entry is a size
reduction of the file location (rtems_filesystem_location_info_t). The
code size is slightly increased due to additional load instructions.

Restructure rtems_filesystem_mount_table_entry_t to improve cache
efficiency.

  • Property mode set to 100644
File size: 729 bytes
Line 
1/*
2 *  freenode()
3 *
4 *  COPYRIGHT (c) 1989-2010.
5 *  On-Line Applications Research Corporation (OAR).
6 *
7 *  Modifications to support reference counting in the file system are
8 *  Copyright (c) 2012 embedded brains GmbH.
9 *
10 *  The license and distribution terms for this file may be
11 *  found in the file LICENSE in this distribution or at
12 *  http://www.rtems.com/license/LICENSE.
13 */
14
15#if HAVE_CONFIG_H
16  #include "config.h"
17#endif
18
19#include <rtems/libio_.h>
20
21void rtems_filesystem_location_free( rtems_filesystem_location_info_t *loc )
22{
23  rtems_filesystem_instance_lock( loc );
24  (*loc->mt_entry->ops->freenod_h)( loc );
25  rtems_filesystem_instance_unlock( loc );
26  rtems_filesystem_location_remove_from_mt_entry( loc );
27}
Note: See TracBrowser for help on using the repository browser.