Symbols
loading...
Files
loading...

perf_benchmark sample sample

perf_benchmark sample is a sample project defining the following symbols:

Most used functions

Name
Location
Summary
@parameter efs file system context
@parameter efs file system context
Internal operations predeclared here ///
Caching block device operations ///
Free and clear a littlefs definition structure.
Get a mounted littlefs filesystem by label.
General operations ///
File index list operations ///
Block allocator ///
Register and mount (if configured to) littlefs to VFS with given path prefix.
Filesystem functions ///
Initialize and mount littlefs
Unregister and unmount littlefs from VFS
Directory operations ///
File operations ///
Program a region in a block. The block must have previously been erased. Negative error codes are propogated to the user. May return LFS_ERR_CORRUPT if the block should be considered bad.
Erase a block. A block must be erased before being programmed. The state of an erased block is undefined. Negative error codes are propogated to the user. May return LFS_ERR_CORRUPT if the block should be considered bad.
Sync the state of the underlying block device. Negative error codes are propogated to the user.
Read a region in a block. Negative error codes are propogated to the user.
Format the littlefs partition
Get information for littlefs
finds an open file descriptor by file name.
Free a vfs_littlefs_dir_t struct.
Filesystem-level filesystem operations
Unregister and unmount littlefs from VFS
Check if littlefs is mounted
Top level file operations ///
Small type-level utilities ///
Metadata pair and directory operations ///
Compute the 32bit DJB2 hash of the given string.
Sets the mtime attr to an appropriate value
Unregister and unmount LittleFS from VFS for SD card
Format the LittleFS on a SD card
Get the index of an unallocated LittleFS slot.
Convert fcntl flags to littlefs flags
Program a region in a block on SD card. The block must have previously been erased. Negative error codes are propogated to the user. May return LFS_ERR_CORRUPT if the block should be considered bad.
Erase a block on SD card. A block must be erased before being programmed. The state of an erased block is undefined. Negative error codes are propogated to the user. May return LFS_ERR_CORRUPT if the block should be considered bad.
Sync the state of the underlying SD card. Negative error codes are propogated to the user.
Read a region in a block on SD card Negative error codes are propogated to the user.
Filesystem filesystem operations ///
Top level directory operations ///
General fs operations ///
Get information for littlefs on SD card

Other commonly used symbols

Name
Location
Summary
Definitions ///
littlefs definition structure
internal littlefs data structures ///
Handle to the underlying littlefs
a file descriptor That's also a singly linked list used for keeping tracks of all opened file descriptor Shortcomings/potential issues of 32-bit hash (when CONFIG_LITTLEFS_USE_ONLY_HASH) listed here: * unlink - If a different file is open that generates a hash collision, it will report an error that it cannot unlink an open file. * rename - If a different file is open that generates a hash collision with src or dst, it will report an error that it cannot rename an open file. Potential consequences: 1. A file cannot be deleted while a collision-geneating file is open. Worst-case, if the other file is always open during the lifecycle of your app, it's collision file cannot be deleted, which in the worst-case could cause storage-capacity issues. 2. Same as (1), but for renames
The cache allocated size (in pointers)
littlefs Mount configuration
A cache of pointers to the opened files
Configuration structure for esp_vfs_littlefs_register.
Label of partition to use.
The partition on which littlefs is located
Singly Linked List of files
Requested directory name
Pointer to next file in Singly Linked List
partition to use if partition_label is NULL
The count of opened file descriptor used to speed up computation
SD card handle to use if both esp_partition handle & partition label is NULL
The SD card driver handle on which littlefs is located
Offset of the current dirent
Don't attempt to mount.
littlefs DIR struct
Filesystem is read-only
Format the file system if it fails to mount.
Mount the partition as read-only.
Last open dirent
Last Modified Time Use 't' for LITTLEFS_ATTR_MTIME to match example: https://github.com/ARMmbed/littlefs/issues/23#issuecomment-482293539 And to match other external tools such as: https://github.com/earlephilhower/mklittlefs
Grow filesystem to match partition size on mount.
Version info ///
VFS DIR struct