mirror of
https://github.com/apache/nuttx.git
synced 2025-12-19 10:54:48 +08:00
TMPFS update
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -137,9 +137,9 @@ struct tmpfs_s
|
||||
{
|
||||
/* The root directory */
|
||||
|
||||
FAR struct tmpfs_directory_s *r_root;
|
||||
FAR struct tmpfs_directory_s *tfs_root;
|
||||
|
||||
sem_t r_exclsem; /* Supports exclusive access to the file system */
|
||||
sem_t tfs_exclsem; /* Supports exclusive access to the file system */
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -102,6 +102,19 @@ struct fs_romfsdir_s
|
||||
};
|
||||
#endif /* CONFIG_FS_ROMFS */
|
||||
|
||||
#ifdef CONFIG_FS_TMPFS
|
||||
/* For TMPFS, we need the directory object and an index into the directory
|
||||
* entries.
|
||||
*/
|
||||
|
||||
struct tmpfs_directory_s; /* Forward reference */
|
||||
struct fs_tmpfsdir_s
|
||||
{
|
||||
FAR struct tmpfs_directory_s *tf_tdo; /* Directory being enumerated */
|
||||
unsigned int tf_index; /* Directory index */
|
||||
};
|
||||
#endif /* CONFIG_FS_TMPFS */
|
||||
|
||||
#ifdef CONFIG_FS_BINFS
|
||||
/* The apps/ pseudo bin/ directory. The state value is simply an index */
|
||||
|
||||
@@ -209,6 +222,9 @@ struct fs_dirent_s
|
||||
#ifdef CONFIG_FS_ROMFS
|
||||
struct fs_romfsdir_s romfs;
|
||||
#endif
|
||||
#ifdef CONFIG_FS_TMPFS
|
||||
struct fs_tmpfsdir_s tmpfs;
|
||||
#endif
|
||||
#ifdef CONFIG_FS_BINFS
|
||||
struct fs_binfsdir_s binfs;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user