mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 04:19:37 +08:00
TMPFS update
This commit is contained in:
+273
-55
File diff suppressed because it is too large
Load Diff
+2
-2
@@ -137,9 +137,9 @@ struct tmpfs_s
|
|||||||
{
|
{
|
||||||
/* The root directory */
|
/* 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 */
|
#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
|
#ifdef CONFIG_FS_BINFS
|
||||||
/* The apps/ pseudo bin/ directory. The state value is simply an index */
|
/* The apps/ pseudo bin/ directory. The state value is simply an index */
|
||||||
|
|
||||||
@@ -209,6 +222,9 @@ struct fs_dirent_s
|
|||||||
#ifdef CONFIG_FS_ROMFS
|
#ifdef CONFIG_FS_ROMFS
|
||||||
struct fs_romfsdir_s romfs;
|
struct fs_romfsdir_s romfs;
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef CONFIG_FS_TMPFS
|
||||||
|
struct fs_tmpfsdir_s tmpfs;
|
||||||
|
#endif
|
||||||
#ifdef CONFIG_FS_BINFS
|
#ifdef CONFIG_FS_BINFS
|
||||||
struct fs_binfsdir_s binfs;
|
struct fs_binfsdir_s binfs;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user