OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [libfs/] [src/] [imfs/] [imfs_init.c] - Blame information for rev 1026

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
/*
2
 *  IMFS Initialization
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.OARcorp.com/rtems/license.html.
10
 *
11
 *  imfs_init.c,v 1.9 2001/01/22 14:05:14 joel Exp
12
 */
13
 
14
#if HAVE_CONFIG_H
15
#include "config.h"
16
#endif
17
 
18
#include <sys/types.h>         /* for mkdir */
19
#include <fcntl.h>
20
#include <unistd.h>
21
#include <stdlib.h>
22
 
23
#include <assert.h>
24
 
25
#include "imfs.h"
26
#include <rtems/libio_.h>
27
 
28
#if defined(IMFS_DEBUG)
29
#include <stdio.h>
30
#endif
31
 
32
/*
33
 *  IMFS file system operations table
34
 */
35
 
36
rtems_filesystem_operations_table  IMFS_ops = {
37
  IMFS_eval_path,
38
  IMFS_evaluate_for_make,
39
  IMFS_link,
40
  IMFS_unlink,
41
  IMFS_node_type,
42
  IMFS_mknod,
43
  IMFS_chown,
44
  IMFS_freenodinfo,
45
  IMFS_mount,
46
  IMFS_initialize,
47
  IMFS_unmount,
48
  IMFS_fsunmount,
49
  IMFS_utime,
50
  IMFS_evaluate_link,
51
  IMFS_symlink,
52
  IMFS_readlink
53
};
54
 
55
/*
56
 *  IMFS_initialize
57
 */
58
 
59
int IMFS_initialize(
60
  rtems_filesystem_mount_table_entry_t *temp_mt_entry
61
)
62
{
63
   IMFS_initialize_support(
64
     temp_mt_entry,
65
     &IMFS_ops,
66
     &IMFS_linearfile_handlers,
67
     &IMFS_memfile_handlers,
68
     &IMFS_directory_handlers
69
   );
70
   return 0;
71
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.