RTEMS
6.3
Toggle main menu visibility
Loading...
Searching...
No Matches
cpukit
include
rtems
fsmount.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-2-Clause */
2
15
16
/*
17
* Copyright (c) 2003 IMD Ingenieurbuero fuer Microcomputertechnik
18
* All rights reserved.
19
*
20
* Redistribution and use in source and binary forms, with or without
21
* modification, are permitted provided that the following conditions
22
* are met:
23
* 1. Redistributions of source code must retain the above copyright
24
* notice, this list of conditions and the following disclaimer.
25
* 2. Redistributions in binary form must reproduce the above copyright
26
* notice, this list of conditions and the following disclaimer in the
27
* documentation and/or other materials provided with the distribution.
28
*
29
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
30
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
31
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
32
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
33
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
34
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
35
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
36
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
37
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
38
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
39
* POSSIBILITY OF SUCH DAMAGE.
40
*/
41
42
#ifndef _FSMOUNT_H
43
#define _FSMOUNT_H
44
45
#include <
rtems.h
>
46
#include <
rtems/libio.h
>
47
#include <
rtems/libcsupport.h
>
48
49
#ifdef __cplusplus
50
extern
"C"
{
51
#endif
52
59
68
typedef
enum
{
72
RTEMS_FSTAB_NONE
= 0U,
73
77
RTEMS_FSTAB_OK
= 0x1U,
78
82
RTEMS_FSTAB_ERROR_MOUNT_POINT
= 0x2U,
83
87
RTEMS_FSTAB_ERROR_MOUNT
= 0x4U,
88
92
RTEMS_FSTAB_ERROR
=
RTEMS_FSTAB_ERROR_MOUNT_POINT
|
RTEMS_FSTAB_ERROR_MOUNT
,
93
97
RTEMS_FSTAB_ANY
=
RTEMS_FSTAB_OK
|
RTEMS_FSTAB_ERROR
98
}
rtems_fstab_conditions
;
99
103
typedef
struct
{
107
const
char
*
source
;
108
112
const
char
*
target
;
113
117
const
char
*
type
;
118
122
rtems_filesystem_options_t
options
;
123
127
uint16_t
report_reasons
;
128
132
uint16_t
abort_reasons
;
133
}
rtems_fstab_entry
;
134
207
int
rtems_fsmount
(
208
const
rtems_fstab_entry
*fstab,
209
size_t
size,
210
size_t
*abort_index
211
);
212
214
215
typedef
rtems_fstab_entry
fstab_t;
216
217
#define FSMOUNT_MNT_OK RTEMS_FSTAB_OK
218
219
#define FSMOUNT_MNTPNT_CRTERR RTEMS_FSTAB_ERROR_MOUNT_POINT
220
221
#define FSMOUNT_MNT_FAILED RTEMS_FSTAB_ERROR_MOUNT
222
223
#ifdef __cplusplus
224
}
225
#endif
226
227
#endif
/* _FSMOUNT_H */
rtems_filesystem_options_t
rtems_filesystem_options_t
File system options.
Definition
libio.h:1719
rtems_fsmount
int rtems_fsmount(const rtems_fstab_entry *fstab, size_t size, size_t *abort_index)
Mounts the file systems listed in the file system mount table.
Definition
fsmount.c:57
rtems_fstab_conditions
rtems_fstab_conditions
Definition
fsmount.h:68
RTEMS_FSTAB_NONE
@ RTEMS_FSTAB_NONE
Definition
fsmount.h:72
RTEMS_FSTAB_ERROR_MOUNT_POINT
@ RTEMS_FSTAB_ERROR_MOUNT_POINT
Definition
fsmount.h:82
RTEMS_FSTAB_ERROR
@ RTEMS_FSTAB_ERROR
Definition
fsmount.h:92
RTEMS_FSTAB_OK
@ RTEMS_FSTAB_OK
Definition
fsmount.h:77
RTEMS_FSTAB_ANY
@ RTEMS_FSTAB_ANY
Definition
fsmount.h:97
RTEMS_FSTAB_ERROR_MOUNT
@ RTEMS_FSTAB_ERROR_MOUNT
Definition
fsmount.h:87
libcsupport.h
Standard C Library Support.
libio.h
Basic IO API.
rtems.h
This header file defines the RTEMS Classic API.
rtems_fstab_entry
Definition
fsmount.h:103
rtems_fstab_entry::options
rtems_filesystem_options_t options
Definition
fsmount.h:122
rtems_fstab_entry::source
const char * source
Definition
fsmount.h:107
rtems_fstab_entry::target
const char * target
Definition
fsmount.h:112
rtems_fstab_entry::type
const char * type
Definition
fsmount.h:117
rtems_fstab_entry::report_reasons
uint16_t report_reasons
Definition
fsmount.h:127
rtems_fstab_entry::abort_reasons
uint16_t abort_reasons
Definition
fsmount.h:132
Generated by
1.18.0