-
Notifications
You must be signed in to change notification settings - Fork 0
/
fs_8h.html
254 lines (252 loc) · 19.5 KB
/
fs_8h.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Tenok: include/fs/fs.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="logo-small.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Tenok
</div>
<div id="projectbrief">A Linux-like Real-Time Operating System for Robotics and Internet of Things</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_203f267fac8cf3dfe9f5770a10d988c8.html">fs</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Data Structures</a> |
<a href="#define-members">Macros</a> |
<a href="#typedef-members">Typedefs</a> |
<a href="#enum-members">Enumerations</a> |
<a href="#func-members">Functions</a> |
<a href="#var-members">Variables</a> </div>
<div class="headertitle">
<div class="title">fs.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include <<a class="el" href="dirent_8h_source.html">dirent.h</a>></code><br />
<code>#include <stdbool.h></code><br />
<code>#include <stddef.h></code><br />
<code>#include <stdint.h></code><br />
<code>#include <<a class="el" href="types_8h_source.html">sys/types.h</a>></code><br />
<code>#include <<a class="el" href="list_8h_source.html">common/list.h</a>></code><br />
<code>#include <<a class="el" href="wait_8h_source.html">kernel/wait.h</a>></code><br />
<code>#include "kconfig.h"</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for fs.h:</div>
<div class="dyncontent">
<div class="center"><img src="fs_8h__incl.png" border="0" usemap="#ainclude_2fs_2fs_8h" alt=""/></div>
<map name="ainclude_2fs_2fs_8h" id="ainclude_2fs_2fs_8h">
<area shape="rect" title=" " alt="" coords="913,5,1026,32"/>
<area shape="rect" href="dirent_8h.html" title=" " alt="" coords="84,155,156,181"/>
<area shape="rect" title=" " alt="" coords="439,304,510,331"/>
<area shape="rect" title=" " alt="" coords="65,379,146,405"/>
<area shape="rect" title=" " alt="" coords="1120,304,1203,331"/>
<area shape="rect" title=" " alt="" coords="1511,379,1585,405"/>
<area shape="rect" href="types_8h.html" title=" " alt="" coords="197,80,293,107"/>
<area shape="rect" href="list_8h.html" title=" " alt="" coords="1444,304,1559,331"/>
<area shape="rect" href="wait_8h.html" title=" " alt="" coords="1437,80,1544,107"/>
<area shape="rect" href="limits_8h.html" title=" " alt="" coords="145,229,242,256"/>
<area shape="rect" href="syslimits_8h.html" title=" " alt="" coords="114,304,233,331"/>
<area shape="rect" href="kernel_8h.html" title=" " alt="" coords="910,155,1029,181"/>
<area shape="rect" href="kernel_2sched_8h.html" title=" " alt="" coords="1489,155,1605,181"/>
<area shape="rect" href="thread_8h.html" title=" " alt="" coords="1536,229,1656,256"/>
<area shape="rect" href="pthread_8h.html" title=" " alt="" coords="1119,229,1203,256"/>
<area shape="rect" href="kernel_2signal_8h.html" title=" " alt="" coords="970,229,1043,256"/>
<area shape="rect" href="resource_8h.html" title=" " alt="" coords="561,229,677,256"/>
<area shape="rect" href="task_8h.html" title=" " alt="" coords="701,229,763,256"/>
<area shape="rect" href="util_8h.html" title=" " alt="" coords="369,229,485,256"/>
<area shape="rect" href="kfifo_8h.html" title=" " alt="" coords="788,229,895,256"/>
<area shape="rect" href="kernel_2time_8h.html" title=" " alt="" coords="1227,229,1335,256"/>
<area shape="rect" href="tenok_2sys_2sched_8h.html" title=" " alt="" coords="1275,304,1373,331"/>
</map>
</div>
</div><div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="fs_8h__dep__incl.png" border="0" usemap="#ainclude_2fs_2fs_8hdep" alt=""/></div>
<map name="ainclude_2fs_2fs_8hdep" id="ainclude_2fs_2fs_8hdep">
<area shape="rect" title=" " alt="" coords="395,5,509,32"/>
<area shape="rect" href="reg__file_8h.html" title=" " alt="" coords="5,80,155,107"/>
<area shape="rect" href="kernel_8h.html" title=" " alt="" coords="179,80,349,107"/>
<area shape="rect" href="pipe_8h.html" title=" " alt="" coords="373,80,531,107"/>
<area shape="rect" href="kernel_2poll_8h.html" title=" " alt="" coords="555,80,709,107"/>
<area shape="rect" href="wait_8h.html" title=" " alt="" coords="185,155,343,181"/>
</map>
</div>
</div>
<p><a href="fs_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structsuper__block.html">super_block</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structblock__header.html">block_header</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structmount.html">mount</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structinode.html">inode</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structdentry.html">dentry</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structfile.html">file</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structfile__operations.html">file_operations</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structfdtable.html">fdtable</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:aad9d80518b8bb8a00143c8cfec3d7140"><td class="memItemLeft" align="right" valign="top"><a id="aad9d80518b8bb8a00143c8cfec3d7140"></a>
#define </td><td class="memItemRight" valign="bottom"><b>RDEV_ROOTFS</b>   0</td></tr>
<tr class="separator:aad9d80518b8bb8a00143c8cfec3d7140"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1771d312d6a82d2144030a5d350fdb82"><td class="memItemLeft" align="right" valign="top"><a id="a1771d312d6a82d2144030a5d350fdb82"></a>
#define </td><td class="memItemRight" valign="bottom"><b>FILE_RESERVED_NUM</b>   (THREAD_MAX + 3)</td></tr>
<tr class="separator:a1771d312d6a82d2144030a5d350fdb82"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4256368d883bbeae70b4b7ca8438ef09"><td class="memItemLeft" align="right" valign="top"><a id="a4256368d883bbeae70b4b7ca8438ef09"></a>
#define </td><td class="memItemRight" valign="bottom"><b>THREAD_PIPE_FD</b>(thread_id)   (thread_id + 3)</td></tr>
<tr class="separator:a4256368d883bbeae70b4b7ca8438ef09"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:aa48e1ce6f27b98ed11a367b4a8602248"><td class="memItemLeft" align="right" valign="top"><a id="aa48e1ce6f27b98ed11a367b4a8602248"></a>
typedef void(* </td><td class="memItemRight" valign="bottom"><b>drv_init_func_t</b>) (void)</td></tr>
<tr class="separator:aa48e1ce6f27b98ed11a367b4a8602248"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:a06fc87d81c62e9abb8790b6e5713c55b"><td class="memItemLeft" align="right" valign="top"><a id="a06fc87d81c62e9abb8790b6e5713c55b"></a>enum  </td><td class="memItemRight" valign="bottom">{ <br />
  <b>FS_CREATE_FILE</b> = 1
, <b>FS_OPEN_FILE</b> = 2
, <b>FS_OPEN_DIR</b> = 3
, <b>FS_MOUNT</b> = 4
, <br />
  <b>FS_GET_CWD</b> = 5
, <b>FS_CHANGE_DIR</b> = 6
<br />
}</td></tr>
<tr class="separator:a06fc87d81c62e9abb8790b6e5713c55b"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a774e93c5fb36a787b0fe82cd238eaff5"><td class="memItemLeft" align="right" valign="top"><a id="a774e93c5fb36a787b0fe82cd238eaff5"></a>
void </td><td class="memItemRight" valign="bottom"><b>rootfs_init</b> (void)</td></tr>
<tr class="separator:a774e93c5fb36a787b0fe82cd238eaff5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7b79268a057e22e035b0e1e6e89e9bc3"><td class="memItemLeft" align="right" valign="top"><a id="a7b79268a057e22e035b0e1e6e89e9bc3"></a>
void </td><td class="memItemRight" valign="bottom"><b>link_stdin_dev</b> (char *path)</td></tr>
<tr class="separator:a7b79268a057e22e035b0e1e6e89e9bc3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7b0ff91e9a531539235aa1e7c6f5d2ef"><td class="memItemLeft" align="right" valign="top"><a id="a7b0ff91e9a531539235aa1e7c6f5d2ef"></a>
void </td><td class="memItemRight" valign="bottom"><b>link_stdout_dev</b> (char *path)</td></tr>
<tr class="separator:a7b0ff91e9a531539235aa1e7c6f5d2ef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a13fde2a7b474002cea260e5c14acf265"><td class="memItemLeft" align="right" valign="top"><a id="a13fde2a7b474002cea260e5c14acf265"></a>
void </td><td class="memItemRight" valign="bottom"><b>link_stderr_dev</b> (char *path)</td></tr>
<tr class="separator:a13fde2a7b474002cea260e5c14acf265"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3629a5532a429f34fff636a779f7212c"><td class="memItemLeft" align="right" valign="top"><a id="a3629a5532a429f34fff636a779f7212c"></a>
int </td><td class="memItemRight" valign="bottom"><b>register_chrdev</b> (char *name, struct <a class="el" href="structfile__operations.html">file_operations</a> *fops)</td></tr>
<tr class="separator:a3629a5532a429f34fff636a779f7212c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0aab5e2cd59bc8f9ba5b32e042b8fdad"><td class="memItemLeft" align="right" valign="top"><a id="a0aab5e2cd59bc8f9ba5b32e042b8fdad"></a>
int </td><td class="memItemRight" valign="bottom"><b>register_blkdev</b> (char *name, struct <a class="el" href="structfile__operations.html">file_operations</a> *fops)</td></tr>
<tr class="separator:a0aab5e2cd59bc8f9ba5b32e042b8fdad"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a342bba7eefdb265a1fc035e5d2f49e6e"><td class="memItemLeft" align="right" valign="top"><a id="a342bba7eefdb265a1fc035e5d2f49e6e"></a>
int </td><td class="memItemRight" valign="bottom"><b>fs_read_dir</b> (<a class="el" href="structdirstream.html">DIR</a> *dirp, struct <a class="el" href="structdirent.html">dirent</a> *<a class="el" href="structdirent.html">dirent</a>)</td></tr>
<tr class="separator:a342bba7eefdb265a1fc035e5d2f49e6e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aeb7fbb17aa1edb3c64ac65d93aab2831"><td class="memItemLeft" align="right" valign="top"><a id="aeb7fbb17aa1edb3c64ac65d93aab2831"></a>
uint32_t </td><td class="memItemRight" valign="bottom"><b>fs_get_block_addr</b> (struct <a class="el" href="structinode.html">inode</a> *<a class="el" href="structinode.html">inode</a>, int blk_index)</td></tr>
<tr class="separator:aeb7fbb17aa1edb3c64ac65d93aab2831"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3b9b9ec0a728ec61a05c34483eda393a"><td class="memItemLeft" align="right" valign="top"><a id="a3b9b9ec0a728ec61a05c34483eda393a"></a>
uint32_t </td><td class="memItemRight" valign="bottom"><b>fs_file_append_block</b> (struct <a class="el" href="structinode.html">inode</a> *<a class="el" href="structinode.html">inode</a>)</td></tr>
<tr class="separator:a3b9b9ec0a728ec61a05c34483eda393a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:adad53dc5c7193dcd6629cde4ec9d452f"><td class="memItemLeft" align="right" valign="top"><a id="adad53dc5c7193dcd6629cde4ec9d452f"></a>
void </td><td class="memItemRight" valign="bottom"><b>request_create_file</b> (int thread_id, const char *path, uint8_t file_type)</td></tr>
<tr class="separator:adad53dc5c7193dcd6629cde4ec9d452f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a322170cedd95d25cadbdef163d74d9bd"><td class="memItemLeft" align="right" valign="top"><a id="a322170cedd95d25cadbdef163d74d9bd"></a>
void </td><td class="memItemRight" valign="bottom"><b>request_open_file</b> (int thread_id, const char *path)</td></tr>
<tr class="separator:a322170cedd95d25cadbdef163d74d9bd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9c8177b81bb101f2ff2920c4d52c6bb3"><td class="memItemLeft" align="right" valign="top"><a id="a9c8177b81bb101f2ff2920c4d52c6bb3"></a>
void </td><td class="memItemRight" valign="bottom"><b>request_open_directory</b> (int reply_fd, const char *path)</td></tr>
<tr class="separator:a9c8177b81bb101f2ff2920c4d52c6bb3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7514bede51ff460b7c6c5b50241fcd3a"><td class="memItemLeft" align="right" valign="top"><a id="a7514bede51ff460b7c6c5b50241fcd3a"></a>
void </td><td class="memItemRight" valign="bottom"><b>request_mount</b> (int thread_id, const char *source, const char *target)</td></tr>
<tr class="separator:a7514bede51ff460b7c6c5b50241fcd3a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1ca78a14d624691ef6d18b15178e6ea8"><td class="memItemLeft" align="right" valign="top"><a id="a1ca78a14d624691ef6d18b15178e6ea8"></a>
void </td><td class="memItemRight" valign="bottom"><b>request_getcwd</b> (int thread_id, char *buf, size_t len)</td></tr>
<tr class="separator:a1ca78a14d624691ef6d18b15178e6ea8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:adadc0177bfd9c43bdfe3687d59936a27"><td class="memItemLeft" align="right" valign="top"><a id="adadc0177bfd9c43bdfe3687d59936a27"></a>
void </td><td class="memItemRight" valign="bottom"><b>request_chdir</b> (int thread_id, const char *path)</td></tr>
<tr class="separator:adadc0177bfd9c43bdfe3687d59936a27"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2d40a3dace74d71e62c276b6d3d46c8c"><td class="memItemLeft" align="right" valign="top"><a id="a2d40a3dace74d71e62c276b6d3d46c8c"></a>
void </td><td class="memItemRight" valign="bottom"><b>filesysd</b> (void)</td></tr>
<tr class="separator:a2d40a3dace74d71e62c276b6d3d46c8c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac631d919599bc9f992d2827f18fa53c6"><td class="memItemLeft" align="right" valign="top"><a id="ac631d919599bc9f992d2827f18fa53c6"></a>
void </td><td class="memItemRight" valign="bottom"><b>fs_print_inode_bitmap</b> (void)</td></tr>
<tr class="separator:ac631d919599bc9f992d2827f18fa53c6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a556e62ce221dff8137a1ff0d651bed5d"><td class="memItemLeft" align="right" valign="top"><a id="a556e62ce221dff8137a1ff0d651bed5d"></a>
void </td><td class="memItemRight" valign="bottom"><b>fs_print_block_bitmap</b> (void)</td></tr>
<tr class="separator:a556e62ce221dff8137a1ff0d651bed5d"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:ada41265a0396ff18983699abd0f2f582"><td class="memItemLeft" align="right" valign="top"><a id="ada41265a0396ff18983699abd0f2f582"></a>
enum { ... }  </td><td class="memItemRight" valign="bottom"><b>FS_SERVER_CMDS</b></td></tr>
<tr class="separator:ada41265a0396ff18983699abd0f2f582"><td class="memSeparator" colspan="2"> </td></tr>
</table>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>