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

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
fsmount.h
Go to the documentation of this file.
1
14/*
15 * Copyright (c) 2003 IMD
16 *
17 * Ingenieurbuero fuer Microcomputertechnik Th. Doerfler
18 * <Thomas.Doerfler@imd-systems.de>
19 * all rights reserved
20 *
21 * The license and distribution terms for this file may be
22 * found in the file LICENSE in this distribution or at
23 * http://www.rtems.org/license/LICENSE.
24 */
25
26#ifndef _FSMOUNT_H
27#define _FSMOUNT_H
28
29#include <rtems.h>
30#include <rtems/libio.h>
31#include <rtems/libcsupport.h>
32
33#ifdef __cplusplus
34extern "C" {
35#endif
36
52 typedef enum {
56 RTEMS_FSTAB_NONE = 0U,
57
61 RTEMS_FSTAB_OK = 0x1U,
62
66 RTEMS_FSTAB_ERROR_MOUNT_POINT = 0x2U,
67
71 RTEMS_FSTAB_ERROR_MOUNT = 0x4U,
72
76 RTEMS_FSTAB_ERROR = RTEMS_FSTAB_ERROR_MOUNT_POINT | RTEMS_FSTAB_ERROR_MOUNT,
77
81 RTEMS_FSTAB_ANY = RTEMS_FSTAB_OK | RTEMS_FSTAB_ERROR
82} rtems_fstab_conditions;
83
87 typedef struct {
91 const char *source;
92
96 const char *target;
97
101 const char *type;
102
106 rtems_filesystem_options_t options;
107
111 uint16_t report_reasons;
112
116 uint16_t abort_reasons;
117} rtems_fstab_entry;
118
191int rtems_fsmount(
192 const rtems_fstab_entry *fstab,
193 size_t size,
194 size_t *abort_index
195);
196
199typedef rtems_fstab_entry fstab_t;
200
201#define FSMOUNT_MNT_OK RTEMS_FSTAB_OK
202
203#define FSMOUNT_MNTPNT_CRTERR RTEMS_FSTAB_ERROR_MOUNT_POINT
204
205#define FSMOUNT_MNT_FAILED RTEMS_FSTAB_ERROR_MOUNT
206
207#ifdef __cplusplus
208}
209#endif
210
211#endif /* _FSMOUNT_H */
rtems_filesystem_options_t
rtems_filesystem_options_t
File system options.
Definition: libio.h:1647
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:40
rtems_fstab_conditions
rtems_fstab_conditions
Definition: fsmount.h:52
RTEMS_FSTAB_NONE
@ RTEMS_FSTAB_NONE
Definition: fsmount.h:56
RTEMS_FSTAB_ERROR_MOUNT_POINT
@ RTEMS_FSTAB_ERROR_MOUNT_POINT
Definition: fsmount.h:66
RTEMS_FSTAB_ERROR
@ RTEMS_FSTAB_ERROR
Definition: fsmount.h:76
RTEMS_FSTAB_OK
@ RTEMS_FSTAB_OK
Definition: fsmount.h:61
RTEMS_FSTAB_ANY
@ RTEMS_FSTAB_ANY
Definition: fsmount.h:81
RTEMS_FSTAB_ERROR_MOUNT
@ RTEMS_FSTAB_ERROR_MOUNT
Definition: fsmount.h:71
libcsupport.h
Standard C Library Support.
libio.h
Basic IO API.
rtems.h
rtems_fstab_entry
Definition: fsmount.h:87
rtems_fstab_entry::options
rtems_filesystem_options_t options
Definition: fsmount.h:106
rtems_fstab_entry::source
const char * source
Definition: fsmount.h:91
rtems_fstab_entry::target
const char * target
Definition: fsmount.h:96
rtems_fstab_entry::type
const char * type
Definition: fsmount.h:101
rtems_fstab_entry::report_reasons
uint16_t report_reasons
Definition: fsmount.h:111
rtems_fstab_entry::abort_reasons
uint16_t abort_reasons
Definition: fsmount.h:116