Zephyr API Documentation
4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ext2.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2023 Antmicro <www.antmicro.com>
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef ZEPHYR_INCLUDE_FS_EXT2_H_
8
#define ZEPHYR_INCLUDE_FS_EXT2_H_
9
10
#include <
stdint.h
>
11
26
struct
ext2_cfg
{
27
uint32_t
block_size
;
28
uint32_t
fs_size
;
/* Number of blocks that we want to take. */
29
uint32_t
bytes_per_inode
;
30
uint8_t
uuid
[16];
31
uint8_t
volume_name
[17];
/* If first byte is 0 then name ext2" is given. */
32
bool
set_uuid
;
33
};
34
35
#define FS_EXT2_DECLARE_DEFAULT_CONFIG(name) \
36
static struct ext2_cfg name = { \
37
.block_size = 1024, \
38
.fs_size = 0x800000, \
39
.bytes_per_inode = 4096, \
40
.volume_name = {'e', 'x', 't', '2', '\0'}, \
41
.set_uuid = false, \
42
}
43
44
45
#endif
/* ZEPHYR_INCLUDE_FS_EXT2_H_ */
stdint.h
uint32_t
__UINT32_TYPE__ uint32_t
Definition
stdint.h:90
uint8_t
__UINT8_TYPE__ uint8_t
Definition
stdint.h:88
ext2_cfg
Configuration used to format ext2 file system.
Definition
ext2.h:26
ext2_cfg::bytes_per_inode
uint32_t bytes_per_inode
Definition
ext2.h:29
ext2_cfg::volume_name
uint8_t volume_name[17]
Definition
ext2.h:31
ext2_cfg::block_size
uint32_t block_size
Definition
ext2.h:27
ext2_cfg::set_uuid
bool set_uuid
Definition
ext2.h:32
ext2_cfg::fs_size
uint32_t fs_size
Definition
ext2.h:28
ext2_cfg::uuid
uint8_t uuid[16]
Definition
ext2.h:30
zephyr
fs
ext2.h
Generated on Sun Dec 22 2024 15:02:19 for Zephyr API Documentation by
1.12.0