mirror of
https://github.com/apache/nuttx.git
synced 2026-05-18 00:34:10 +08:00
Move file-system header files to include/nuttx/fs
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4499 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -2579,3 +2579,5 @@
|
||||
the USB device driver can used the the mass storage class (which does a LOT
|
||||
of stalling as part of its normal protocol). The PIC32 USB Mass Storage
|
||||
device is, however, still non-functional when debug is OFF.
|
||||
* include/nuttx/fs: Move all file-system related files from include/nuttx to
|
||||
include/nuttx/fs.
|
||||
|
||||
@@ -1321,7 +1321,7 @@ mkfatfs <path>
|
||||
Format a fat file system on the block device specified by <code><path></code>.
|
||||
NSH provides this command to access the <a href="mkfatfs"><code>mkfatfs()</code></a> NuttX API.
|
||||
This block device must reside in the NuttX <a href="NuttxUserGuide.html#FileSystemOverview"><i>pseudo</i> filesystem</a> and
|
||||
must have been created by some call to <code>register_blockdriver()</code> (see <code>include/nuttx/fs.h</code>).
|
||||
must have been created by some call to <code>register_blockdriver()</code> (see <code>include/nuttx/fs/fs.h</code>).
|
||||
</p>
|
||||
|
||||
<table width ="100%">
|
||||
|
||||
@@ -2307,7 +2307,7 @@ extern void up_ledoff(int led);
|
||||
<ul>
|
||||
<li>
|
||||
<p>
|
||||
<b><code>include/nuttx/fs.h</code></b>.
|
||||
<b><code>include/nuttx/fs/fs.h</code></b>.
|
||||
All structures and APIs needed to work with character drivers are provided in this header file.
|
||||
</p>
|
||||
</li>
|
||||
@@ -2359,7 +2359,7 @@ extern void up_ledoff(int led);
|
||||
<ul>
|
||||
<li>
|
||||
<p>
|
||||
<b><code>include/nuttx/fs.h</code></b>.
|
||||
<b><code>include/nuttx/fs/fs.h</code></b>.
|
||||
All structures and APIs needed to work with block drivers are provided in this header file.
|
||||
</p>
|
||||
</li>
|
||||
@@ -2797,7 +2797,7 @@ extern void up_ledoff(int led);
|
||||
<li><code>MTDIOC_BULKERASE</code>: Erase the entire device</li>
|
||||
</ul>
|
||||
<p>
|
||||
is provided via a sinble <code>ioctl</code> method (see <code>include/nuttx/ioctl.h</code>):
|
||||
is provided via a sinble <code>ioctl</code> method (see <code>include/nuttx/fs/ioctl.h</code>):
|
||||
</p>
|
||||
<ul>
|
||||
<p><code>int (*ioctl)(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg);</code></p>
|
||||
@@ -3827,12 +3827,12 @@ build
|
||||
</li>
|
||||
<li>
|
||||
<code>CONFIG_NUTTX_KERNEL</code>:
|
||||
With most MCUs, NuttX is built as a flat, single executable image
|
||||
With most MCUs, NuttX is built as a flat, single executable image
|
||||
containing the NuttX RTOS along with all application code.
|
||||
The RTOS code and the application run in the same address space and at the same kernel-mode privileges.
|
||||
If this option is selected, NuttX will be built separately as a monolithic, kernel-mode module and the applications
|
||||
If this option is selected, NuttX will be built separately as a monolithic, kernel-mode module and the applications
|
||||
can be added as a separately built, user-mode module.
|
||||
In this a system call layer will be built to support the user- to kernel-mode interface to the RTOS.
|
||||
In this a system call layer will be built to support the user- to kernel-mode interface to the RTOS.
|
||||
</li>
|
||||
<li>
|
||||
<code>CONFIG_MM_REGIONS</code>: If the architecture includes multiple
|
||||
|
||||
@@ -6623,7 +6623,7 @@ void *memmove(void *dest, const void *src, size_t count);
|
||||
<b>Function Prototype:</b>
|
||||
</p>
|
||||
<ul><pre>
|
||||
#include <nuttx/mkfatfs.h>
|
||||
#include <nuttx/fs/mkfatfs.h>
|
||||
int mkfatfs(FAR const char *pathname, FAR struct fat_format_s *fmt);
|
||||
</pre></ul>
|
||||
<p>
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#include <nuttx/arch.h>
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
|
||||
#include "up_internal.h"
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <nuttx/ioctl.h>
|
||||
#include <nuttx/fs/ioctl.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Definitions
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#include <nuttx/ioctl.h>
|
||||
#include <nuttx/fs/ioctl.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Definitions
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
#include <debug.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#include <nuttx/irq.h>
|
||||
#include <arch/watchdog.h>
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
#include "up_internal.h"
|
||||
|
||||
#ifdef CONFIG_DUMP_ON_EXIT
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/arch.h>
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#include <nuttx/ramlog.h>
|
||||
|
||||
#include <arch/board/board.h>
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
#include "up_internal.h"
|
||||
|
||||
#ifdef CONFIG_DUMP_ON_EXIT
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/arch.h>
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#include <nuttx/ramlog.h>
|
||||
|
||||
#include <arch/board/board.h>
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
#include "up_internal.h"
|
||||
|
||||
#ifdef CONFIG_DUMP_ON_EXIT
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/arch.h>
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#include <nuttx/ramlog.h>
|
||||
|
||||
#include "up_arch.h"
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
#include "up_internal.h"
|
||||
|
||||
#ifdef CONFIG_DUMP_ON_EXIT
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/arch.h>
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#include <nuttx/ramlog.h>
|
||||
|
||||
#include <arch/board/board.h>
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdbool.h>
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#include <nuttx/kmalloc.h>
|
||||
#include <fs_internal.h>
|
||||
#include <queue.h>
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#include <nuttx/ioctl.h>
|
||||
#include <nuttx/fs/ioctl.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Definitions
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
#include "up_internal.h"
|
||||
|
||||
#ifdef CONFIG_DUMP_ON_EXIT
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/arch.h>
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#include <nuttx/ramlog.h>
|
||||
|
||||
#include "up_arch.h"
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
|
||||
#include "up_internal.h"
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/arch.h>
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#include <nuttx/ramlog.h>
|
||||
|
||||
#include "up_internal.h"
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
|
||||
#include <nuttx/kmalloc.h>
|
||||
#include <nuttx/arch.h>
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
|
||||
#include <nuttx/input/touchscreen.h>
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
#include "up_internal.h"
|
||||
|
||||
#ifdef CONFIG_DUMP_ON_EXIT
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/arch.h>
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#include <nuttx/ramlog.h>
|
||||
|
||||
#include <arch/board/board.h>
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
#include "up_internal.h"
|
||||
|
||||
#ifdef CONFIG_DUMP_ON_EXIT
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/arch.h>
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#include <nuttx/mm.h>
|
||||
#include <nuttx/ramlog.h>
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#include <nuttx/ioctl.h>
|
||||
#include <nuttx/fs/ioctl.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Definitions
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
#include "up_internal.h"
|
||||
|
||||
#ifdef CONFIG_DUMP_ON_EXIT
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/arch.h>
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#include <nuttx/mm.h>
|
||||
#include <arch/board/board.h>
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
|
||||
#if defined(CONFIG_PAGING_M25PX) || defined(CONFIG_PAGING_AT45DB)
|
||||
# include <sys/ioctl.h>
|
||||
# include <nuttx/ioctl.h>
|
||||
# include <nuttx/fs/ioctl.h>
|
||||
# include <nuttx/spi.h>
|
||||
# include <nuttx/mtd.h>
|
||||
#endif
|
||||
|
||||
@@ -46,8 +46,8 @@
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/mkfatfs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#include <nuttx/fs/mkfatfs.h>
|
||||
#include <nuttx/ramdisk.h>
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
|
||||
#if defined(CONFIG_PAGING_M25PX) || defined(CONFIG_PAGING_AT45DB)
|
||||
# include <sys/ioctl.h>
|
||||
# include <nuttx/ioctl.h>
|
||||
# include <nuttx/fs/ioctl.h>
|
||||
# include <nuttx/spi.h>
|
||||
# include <nuttx/mtd.h>
|
||||
#endif
|
||||
|
||||
@@ -46,8 +46,8 @@
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/mkfatfs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#include <nuttx/fs/mkfatfs.h>
|
||||
#include <nuttx/ramdisk.h>
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Binary file not shown.
@@ -69,7 +69,7 @@
|
||||
**/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#include <semaphore.h>
|
||||
#include <nuttx/clock.h>
|
||||
#include <nuttx/time.h>
|
||||
|
||||
+3
-3
@@ -17,14 +17,14 @@ can.c
|
||||
|
||||
dev_null.c and dev_zero.c
|
||||
These files provide the standard /dev/null and /dev/zero devices.
|
||||
See include/nuttx/fs.h for functions that should be called if you
|
||||
See include/nuttx/fs/fs.h for functions that should be called if you
|
||||
want to register these devices (devnull_register() and
|
||||
devzero_register()).
|
||||
|
||||
loop.c
|
||||
Supports the standard loop device that can be used to export a
|
||||
file (or character device) as a block device. See losetup() and
|
||||
loteardown() in include/nuttx/fs.h.
|
||||
loteardown() in include/nuttx/fs/fs.h.
|
||||
|
||||
ramdisk.c
|
||||
Can be used to set up a block of memory or (read-only) FLASH as
|
||||
@@ -60,7 +60,7 @@ analog/
|
||||
bch/
|
||||
Contains logic that may be used to convert a block driver into
|
||||
a character driver. This is the complementary conversion as that
|
||||
performed by loop.c. See include/nuttx/fs.h for registration
|
||||
performed by loop.c. See include/nuttx/fs/fs.h for registration
|
||||
information.
|
||||
|
||||
analog/
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#include <nuttx/arch.h>
|
||||
#include <nuttx/analog/adc.h>
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#include <nuttx/arch.h>
|
||||
#include <nuttx/analog/dac.h>
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <semaphore.h>
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
|
||||
@@ -55,8 +55,8 @@
|
||||
#include <assert.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/ioctl.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#include <nuttx/fs/ioctl.h>
|
||||
|
||||
#include "bch_internal.h"
|
||||
|
||||
|
||||
@@ -49,8 +49,8 @@
|
||||
#include <assert.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/ioctl.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#include <nuttx/fs/ioctl.h>
|
||||
|
||||
#include "bch_internal.h"
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
#include <assert.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
|
||||
#include "bch_internal.h"
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
#include <assert.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
|
||||
#include "bch_internal.h"
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/kmalloc.h>
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
|
||||
#include "bch_internal.h"
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/kmalloc.h>
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
|
||||
#include "bch_internal.h"
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
#include <assert.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
|
||||
#include "bch_internal.h"
|
||||
|
||||
|
||||
+1
-1
@@ -50,7 +50,7 @@
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#include <nuttx/arch.h>
|
||||
#include <nuttx/can.h>
|
||||
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@
|
||||
#include <string.h>
|
||||
#include <poll.h>
|
||||
#include <errno.h>
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Private Function Prototypes
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@
|
||||
#include <string.h>
|
||||
#include <poll.h>
|
||||
#include <errno.h>
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Private Function Prototypes
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user