RTEMS: cpukit/include/rtems/fs.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
fs.h
Go to the documentation of this file.
1
9/*
10 * COPYRIGHT (c) 1989-2011.
11 * On-Line Applications Research Corporation (OAR).
12 *
13 * Modifications to support reference counting in the file system are
14 * Copyright (c) 2012 embedded brains GmbH.
15 *
16 * The license and distribution terms for this file may be
17 * found in the file LICENSE in this distribution or at
18 * http://www.rtems.org/license/LICENSE.
19 */
20
21#ifndef _RTEMS_FS_H
22#define _RTEMS_FS_H
23
24#include <rtems/chain.h>
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30/*
31 * File descriptor Table Information
32 */
33
34/* Forward declarations */
35
36/* FIXME: shouldn't this better not be here? */
37typedef struct rtems_libio_tt rtems_libio_t;
38
39struct rtems_filesystem_mount_table_entry_tt;
40typedef struct rtems_filesystem_mount_table_entry_tt
41 rtems_filesystem_mount_table_entry_t;
42
43typedef struct _rtems_filesystem_file_handlers_r
44 rtems_filesystem_file_handlers_r;
45typedef struct _rtems_filesystem_operations_table
46 rtems_filesystem_operations_table;
47
53 typedef struct rtems_filesystem_location_info_tt {
54 rtems_chain_node mt_entry_node;
55 void *node_access;
56 void *node_access_2;
57 const rtems_filesystem_file_handlers_r *handlers;
58 rtems_filesystem_mount_table_entry_t *mt_entry;
59} rtems_filesystem_location_info_t;
60
81 typedef struct rtems_filesystem_global_location_t {
82 rtems_filesystem_location_info_t location;
83 int reference_count;
84
90 struct rtems_filesystem_global_location_t *deferred_released_next;
91
96 int deferred_released_count;
97} rtems_filesystem_global_location_t;
98
99/*
100 * Return the mount table entry for a path location.
101 */
102#define rtems_filesystem_location_mount(_pl) ((_pl)->mt_entry)
103
104#ifdef __cplusplus
105}
106#endif
107
108#endif
109/* end of include file */
chain.h
Chain API.
rtems_filesystem_location_info_t
struct rtems_filesystem_location_info_tt rtems_filesystem_location_info_t
File system location.
Chain_Node_struct
Definition: chain.h:68
_rtems_filesystem_file_handlers_r
File system node operations table.
Definition: libio.h:1005
_rtems_filesystem_operations_table
File system operations table.
Definition: libio.h:472
rtems_filesystem_global_location_t
Global file system location.
Definition: fs.h:81
rtems_filesystem_global_location_t::deferred_released_next
struct rtems_filesystem_global_location_t * deferred_released_next
Definition: fs.h:90
rtems_filesystem_global_location_t::deferred_released_count
int deferred_released_count
Definition: fs.h:96
rtems_filesystem_location_info_tt
File system location.
Definition: fs.h:53
rtems_filesystem_mount_table_entry_tt
Mount table entry.
Definition: libio.h:1604
rtems_libio_tt
An open file data structure.
Definition: libio.h:1320