RTEMS 6.1-rc2
Loading...
Searching...
No Matches
fsmount.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
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
50extern "C" {
51#endif
52
68typedef enum {
73
78
83
88
93
99
103typedef struct {
107 const char *source;
108
112 const char *target;
113
117 const char *type;
118
123
128
134
207int rtems_fsmount(
208 const rtems_fstab_entry *fstab,
209 size_t size,
210 size_t *abort_index
211);
212
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
File system options.
Definition: libio.h:1666
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
Definition: fsmount.h:68
@ RTEMS_FSTAB_NONE
Definition: fsmount.h:72
@ RTEMS_FSTAB_ERROR_MOUNT_POINT
Definition: fsmount.h:82
@ RTEMS_FSTAB_ERROR
Definition: fsmount.h:92
@ RTEMS_FSTAB_OK
Definition: fsmount.h:77
@ RTEMS_FSTAB_ANY
Definition: fsmount.h:97
@ RTEMS_FSTAB_ERROR_MOUNT
Definition: fsmount.h:87
Standard C Library Support.
Basic IO API.
This header file defines the RTEMS Classic API.
Definition: fsmount.h:103
rtems_filesystem_options_t options
Definition: fsmount.h:122
const char * source
Definition: fsmount.h:107
const char * target
Definition: fsmount.h:112
const char * type
Definition: fsmount.h:117
uint16_t report_reasons
Definition: fsmount.h:127
uint16_t abort_reasons
Definition: fsmount.h:132