18#ifndef __VSF_MALFS_H__
19#define __VSF_MALFS_H__
23#include "../../vsf_fs_cfg.h"
25#if VSF_USE_FS == ENABLED && VSF_FS_USE_MALFS == ENABLED
29#undef __VSF_MALFS_PUBLIC_CONST__
30#if defined(__VSF_MALFS_CLASS_IMPLEMENT)
31# undef __VSF_MALFS_CLASS_IMPLEMENT
32# define __VSF_CLASS_IMPLEMENT__
33# define __VSF_MALFS_PUBLIC_CONST__
34#elif defined(__VSF_MALFS_CLASS_INHERIT__)
35# undef __VSF_MALFS_CLASS_INHERIT__
36# define __VSF_CLASS_INHERIT__
37# define __VSF_MALFS_PUBLIC_CONST__
39# define __VSF_MALFS_PUBLIC_CONST__ const
51#define vk_malfs_mount_mbr vk_malfs_mount
53#define __implement_malfs_cache(__size, __number) \
54 __vk_malfs_cache_node_t __cache_nodes[__number]; \
55 uint8_t __buffer[__size * __number];
115#if VSF_USE_HEAP == ENABLED
119#if VSF_KERNEL_CFG_SUPPORT_SYNC == ENABLED
141#if VSF_USE_HEAP == ENABLED
#define ENABLED
Definition __type.h:28
vsf_err_t
Definition __type.h:42
Definition vsf_malfs.h:72
Definition vsf_malfs.h:83
Definition vsf_malfs.h:98
mal class
Definition vsf_mal.h:168
Definition vsf_malfs.h:116
unsigned short uint16_t
Definition lvgl.h:41
unsigned int uint32_t
Definition lvgl.h:43
unsigned char uint8_t
Definition lvgl.h:40
#define vsf_dcl_class
Definition ooc_class.h:46
#define vsf_class(__name)
Definition ooc_class.h:48
unsigned int uint_fast32_t
Definition stdint.h:27
unsigned long long uint64_t
Definition stdint.h:11
unsigned long long uint_fast64_t
Definition stdint.h:29
Definition vsf_malfs.h:65
uint32_t is_alloced
Definition vsf_malfs.h:69
uint64_t block_addr
Definition vsf_malfs.h:66
uint32_t is_dirty
Definition vsf_malfs.h:68
uint32_t access_time_sec
Definition vsf_malfs.h:67
void __vk_malfs_cache_init(__vk_malfs_info_t *info, __vk_malfs_cache_t *cache)
Definition vsf_malfs.c:159
vsf_err_t __vk_malfs_alloc_cache(__vk_malfs_info_t *info, __vk_malfs_cache_t *cache, uint_fast64_t block_addr)
Definition vsf_malfs.c:312
void __vk_malfs_unmount(__vk_malfs_info_t *info)
Definition vsf_malfs.c:342
vsf_err_t __vk_malfs_read(__vk_malfs_info_t *info, uint_fast64_t block_addr, uint_fast32_t block_num, uint8_t *buff)
Definition vsf_malfs.c:321
vsf_err_t __vk_malfs_write(__vk_malfs_info_t *info, uint_fast64_t block_addr, uint_fast32_t block_num, uint8_t *buff)
Definition vsf_malfs.c:333
void __vk_malfs_init(__vk_malfs_info_t *info)
Definition vsf_malfs.c:147
#define __VSF_MALFS_PUBLIC_CONST__
Definition vsf_malfs.h:39
vsf_err_t vk_malfs_mount(vk_malfs_mounter_t *mounter)
Definition vsf_malfs.c:655
uint8_t * buff
Definition vsf_memfs.h:51
#define VSF_USE_HEAP
Definition vsf_service_cfg.h:35