source: rtems/cpukit/libfs/src/imfs/imfs_handlers_memfile.c @ 1bdff036

4.115
Last change on this file since 1bdff036 was 1bdff036, checked in by Sebastian Huber <sebastian.huber@…>, on 02/23/12 at 16:57:27

IMFS: Reference counting for nodes

The introduction of reference counting of nodes avoids the removal of
open nodes and potential usage of freed memory.

  • Property mode set to 100644
File size: 814 bytes
Line 
1/*
2 *  Memfile Operations Tables for the IMFS
3 *
4 *  COPYRIGHT (c) 1989-1999.
5 *  On-Line Applications Research Corporation (OAR).
6 *
7 *  The license and distribution terms for this file may be
8 *  found in the file LICENSE in this distribution or at
9 *  http://www.rtems.com/license/LICENSE.
10 *
11 *  $Id$
12 */
13
14#if HAVE_CONFIG_H
15  #include "config.h"
16#endif
17
18#include "imfs.h"
19
20/*
21 *  Set of operations handlers for operations on memfile entities.
22 */
23
24const rtems_filesystem_file_handlers_r IMFS_memfile_handlers = {
25  memfile_open,
26  rtems_filesystem_default_close,
27  memfile_read,
28  memfile_write,
29  memfile_ioctl,
30  memfile_lseek,
31  IMFS_stat,
32  memfile_ftruncate,
33  rtems_filesystem_default_fsync_or_fdatasync_success,
34  rtems_filesystem_default_fsync_or_fdatasync_success,
35  rtems_filesystem_default_fcntl
36};
Note: See TracBrowser for help on using the repository browser.