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

4.115
Last change on this file since da154e14 was da154e14, checked in by Sebastian Huber <sebastian.huber@…>, on 05/14/12 at 14:55:41

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: 716 bytes
RevLine 
[3b7c123]1/*
2 * Copyright (c) 2012 embedded brains GmbH.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Obere Lagerstr. 30
6 *  82178 Puchheim
7 *  Germany
8 *  <rtems@embedded-brains.de>
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
21rtems_filesystem_node_types_t rtems_filesystem_node_type(
22  const rtems_filesystem_location_info_t *loc
23)
24{
25  rtems_filesystem_node_types_t type;
26
27  rtems_filesystem_instance_lock(loc);
[da154e14]28  type = (*loc->mt_entry->ops->node_type_h)(loc);
[3b7c123]29  rtems_filesystem_instance_unlock(loc);
30
31  return type;
32}
Note: See TracBrowser for help on using the repository browser.