Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
vfs.h
1
/*
2
* SPDX-FileCopyrightText: 2022 Inria
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
33
#include "suit.h"
34
#include "../../sys/include/vfs.h"
35
#include "
vfs_default.h
"
36
37
#ifdef __cplusplus
38
extern
"C"
{
39
#endif
40
44
#ifndef CONFIG_SUIT_STORAGE_MOUNT_POINT
45
#define CONFIG_SUIT_STORAGE_MOUNT_POINT VFS_DEFAULT_DATA
46
#endif
47
51
#ifndef CONFIG_SUIT_STORAGE_SEQ_NO_LOCATION
52
#define CONFIG_SUIT_STORAGE_SEQ_NO_LOCATION (CONFIG_SUIT_STORAGE_MOUNT_POINT "/SEQNO.txt"
)
53
#endif
54
58
typedef
struct
{
59
suit_storage_t
storage
;
60
const
char
**
files
;
61
uint8_t
active_region
;
62
}
suit_storage_vfs_t
;
63
64
#ifdef __cplusplus
65
}
66
#endif
67
suit_storage_vfs_t
riotboot vfs SUIT storage context
Definition:
vfs.h:58
suit_storage_vfs_t::files
const char ** files
storage file array
Definition:
vfs.h:60
suit_storage_vfs_t::storage
suit_storage_t storage
parent struct
Definition:
vfs.h:59
suit_storage_vfs_t::active_region
uint8_t active_region
Active file idx to write to.
Definition:
vfs.h:61
suit_storage
Generic storage backend state.
Definition:
storage.h:290
vfs_default.h
VFS default mount points.
Generated on Mon Nov 24 2025 18:43:16 by
1.9.1