]> git.kernelconcepts.de Git - karo-tx-redboot.git/blob - doc/html/ref/fileio-intro.html
Initial revision
[karo-tx-redboot.git] / doc / html / ref / fileio-intro.html
1 <!-- Copyright (C) 2003 Red Hat, Inc.                                -->
2 <!-- This material may be distributed only subject to the terms      -->
3 <!-- and conditions set forth in the Open Publication License, v1.0  -->
4 <!-- or later (the latest version is presently available at          -->
5 <!-- http://www.opencontent.org/openpub/).                           -->
6 <!-- Distribution of the work or derivative of the work in any       -->
7 <!-- standard (paper) book form is prohibited unless prior           -->
8 <!-- permission is obtained from the copyright holder.               -->
9 <HTML
10 ><HEAD
11 ><TITLE
12 >Introduction</TITLE
13 ><meta name="MSSmartTagsPreventParsing" content="TRUE">
14 <META
15 NAME="GENERATOR"
16 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
17 "><LINK
18 REL="HOME"
19 TITLE="eCos Reference Manual"
20 HREF="ecos-ref.html"><LINK
21 REL="UP"
22 TITLE="File System Support Infrastructure"
23 HREF="fileio.html"><LINK
24 REL="PREVIOUS"
25 TITLE="File System Support Infrastructure"
26 HREF="fileio.html"><LINK
27 REL="NEXT"
28 TITLE="File System Table"
29 HREF="fileio-fstab.html"></HEAD
30 ><BODY
31 CLASS="CHAPTER"
32 BGCOLOR="#FFFFFF"
33 TEXT="#000000"
34 LINK="#0000FF"
35 VLINK="#840084"
36 ALINK="#0000FF"
37 ><DIV
38 CLASS="NAVHEADER"
39 ><TABLE
40 SUMMARY="Header navigation table"
41 WIDTH="100%"
42 BORDER="0"
43 CELLPADDING="0"
44 CELLSPACING="0"
45 ><TR
46 ><TH
47 COLSPAN="3"
48 ALIGN="center"
49 >eCos Reference Manual</TH
50 ></TR
51 ><TR
52 ><TD
53 WIDTH="10%"
54 ALIGN="left"
55 VALIGN="bottom"
56 ><A
57 HREF="fileio.html"
58 ACCESSKEY="P"
59 >Prev</A
60 ></TD
61 ><TD
62 WIDTH="80%"
63 ALIGN="center"
64 VALIGN="bottom"
65 ></TD
66 ><TD
67 WIDTH="10%"
68 ALIGN="right"
69 VALIGN="bottom"
70 ><A
71 HREF="fileio-fstab.html"
72 ACCESSKEY="N"
73 >Next</A
74 ></TD
75 ></TR
76 ></TABLE
77 ><HR
78 ALIGN="LEFT"
79 WIDTH="100%"></DIV
80 ><DIV
81 CLASS="CHAPTER"
82 ><H1
83 ><A
84 NAME="FILEIO-INTRO">Chapter 19. Introduction</H1
85 ><P
86 >This document describes the filesystem infrastructure provided in
87 eCos. This is implemented by the FILEIO package and provides POSIX
88 compliant file and IO operations together with the BSD socket
89 API. These APIs are described in the relevant standards and original
90 documentation and will not be described here. See <A
91 HREF="posix-standard-support.html"
92 >Chapter 31</A
93 > for details of which parts of the
94 POSIX standard are supported.</P
95 ><P
96 >This document is concerned with the interfaces presented to client
97 filesystems and network protocol stacks.</P
98 ><P
99 >The FILEIO infrastructure consist mainly of a set of tables containing
100 pointers to the primary interface functions of a file system. This
101 approach avoids problems of namespace pollution (for example several
102 filesystems can have a function called <TT
103 CLASS="FUNCTION"
104 >read()</TT
105 >, so long as they are
106 static). The system is also structured to eliminate the need for
107 dynamic memory allocation.</P
108 ><P
109 >New filesystems can be written directly to the interfaces described
110 here. Existing filesystems can be ported very easily by the
111 introduction of a thin veneer porting layer that translates FILEIO
112 calls into native filesystem calls. </P
113 ><P
114 >The term filesystem should be read fairly loosely in this
115 document. Object accessed through these interfaces could equally be
116 network protocol sockets, device drivers, fifos, message queues or any
117 other object that can present a file-like interface.</P
118 ></DIV
119 ><DIV
120 CLASS="NAVFOOTER"
121 ><HR
122 ALIGN="LEFT"
123 WIDTH="100%"><TABLE
124 SUMMARY="Footer navigation table"
125 WIDTH="100%"
126 BORDER="0"
127 CELLPADDING="0"
128 CELLSPACING="0"
129 ><TR
130 ><TD
131 WIDTH="33%"
132 ALIGN="left"
133 VALIGN="top"
134 ><A
135 HREF="fileio.html"
136 ACCESSKEY="P"
137 >Prev</A
138 ></TD
139 ><TD
140 WIDTH="34%"
141 ALIGN="center"
142 VALIGN="top"
143 ><A
144 HREF="ecos-ref.html"
145 ACCESSKEY="H"
146 >Home</A
147 ></TD
148 ><TD
149 WIDTH="33%"
150 ALIGN="right"
151 VALIGN="top"
152 ><A
153 HREF="fileio-fstab.html"
154 ACCESSKEY="N"
155 >Next</A
156 ></TD
157 ></TR
158 ><TR
159 ><TD
160 WIDTH="33%"
161 ALIGN="left"
162 VALIGN="top"
163 >File System Support Infrastructure</TD
164 ><TD
165 WIDTH="34%"
166 ALIGN="center"
167 VALIGN="top"
168 ><A
169 HREF="fileio.html"
170 ACCESSKEY="U"
171 >Up</A
172 ></TD
173 ><TD
174 WIDTH="33%"
175 ALIGN="right"
176 VALIGN="top"
177 >File System Table</TD
178 ></TR
179 ></TABLE
180 ></DIV
181 ></BODY
182 ></HTML
183 >