include: nuttx: fs: fix nxstyle errors
Fix nxstyle errors for headers Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
This commit is contained in:
parent
265f758f57
commit
4c2920e760
@ -50,6 +50,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Configuration ************************************************************
|
/* Configuration ************************************************************
|
||||||
* Automounter configuration
|
* Automounter configuration
|
||||||
* CONFIG_FS_AUTOMOUNTER - Enables automount support
|
* CONFIG_FS_AUTOMOUNTER - Enables automount support
|
||||||
@ -71,6 +72,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Types
|
* Public Types
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* This is the type of the automount media change handler. The lower level
|
/* This is the type of the automount media change handler. The lower level
|
||||||
* code will intercept the interrupt and provide the upper level with the
|
* code will intercept the interrupt and provide the upper level with the
|
||||||
* private data that was provided when the interrupt was attached and will
|
* private data that was provided when the interrupt was attached and will
|
||||||
@ -161,7 +163,8 @@ extern "C"
|
|||||||
* lower - Persistent board configuration data
|
* lower - Persistent board configuration data
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* A void* handle. The only use for this handle is with automount_uninitialize().
|
* A void* handle.
|
||||||
|
* The only use for this handle is with automount_uninitialize().
|
||||||
* NULL is returned on any failure.
|
* NULL is returned on any failure.
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -64,7 +64,8 @@ extern "C"
|
|||||||
#define EXTERN extern
|
#define EXTERN extern
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* The "bindir" is file system that supports access to the builtin applications.
|
/* The "bindir" is file system that supports access to the builtin
|
||||||
|
* applications.
|
||||||
* It is typically mounted under /bin.
|
* It is typically mounted under /bin.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -136,8 +136,8 @@ struct fs_binfsdir_s
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_FS_NXFFS
|
#ifdef CONFIG_FS_NXFFS
|
||||||
/* NXFFS is the tiny NuttX wear-leveling FLASH file system. The state value is
|
/* NXFFS is the tiny NuttX wear-leveling FLASH file system.
|
||||||
* the offset in FLASH memory to the next inode entry.
|
* The state value is the offset in FLASH memory to the next inode entry.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct fs_nxffsdir_s
|
struct fs_nxffsdir_s
|
||||||
@ -173,7 +173,10 @@ struct fs_smartfsdir_s
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_FS_SPIFFS
|
#ifdef CONFIG_FS_SPIFFS
|
||||||
/* SPIFFS is an SPI-oriented FLASH file system originally by Peter Andersson */
|
|
||||||
|
/* SPIFFS is an SPI-oriented FLASH file system
|
||||||
|
* originally by Peter Andersson
|
||||||
|
*/
|
||||||
|
|
||||||
struct fs_spiffsdir_s
|
struct fs_spiffsdir_s
|
||||||
{
|
{
|
||||||
@ -199,8 +202,8 @@ struct fs_unionfsdir_s
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_FS_USERFS
|
#ifdef CONFIG_FS_USERFS
|
||||||
/* The UserFS uses an opaque representation since the actual userspace representation
|
/* The UserFS uses an opaque representation since the actual userspace
|
||||||
* of the directory state structure is unknowable.
|
* representation of the directory state structure is unknowable.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct fs_userfsdir_s
|
struct fs_userfsdir_s
|
||||||
@ -302,9 +305,11 @@ struct fs_dirent_s
|
|||||||
struct fs_hostfsdir_s hostfs;
|
struct fs_hostfsdir_s hostfs;
|
||||||
#endif
|
#endif
|
||||||
#endif /* !CONFIG_DISABLE_MOUNTPOINT */
|
#endif /* !CONFIG_DISABLE_MOUNTPOINT */
|
||||||
} u;
|
} u;
|
||||||
|
|
||||||
/* In any event, this the actual struct dirent that is returned by readdir */
|
/* In any event, this the actual struct dirent that is returned by
|
||||||
|
* readdir
|
||||||
|
*/
|
||||||
|
|
||||||
struct dirent fd_dir; /* Populated when readdir is called */
|
struct dirent fd_dir; /* Populated when readdir is called */
|
||||||
};
|
};
|
||||||
|
@ -106,8 +106,8 @@ int fat_setattrib(FAR const char *path, fat_attrib_t setbits,
|
|||||||
* is the corresponding function that will be called to free the DMA-
|
* is the corresponding function that will be called to free the DMA-
|
||||||
* capable memory.
|
* capable memory.
|
||||||
*
|
*
|
||||||
* This functions may be simple wrappers around gran_alloc() and gran_free()
|
* This functions may be simple wrappers around gran_alloc() and
|
||||||
* (See nuttx/mm/gran.h).
|
* gran_free() (See nuttx/mm/gran.h).
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
@ -122,8 +122,8 @@ void loop_register(void);
|
|||||||
* Name: losetup
|
* Name: losetup
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Setup the loop device so that it exports the file referenced by 'filename'
|
* Setup the loop device so that it exports the file referenced by
|
||||||
* as a block device.
|
* 'filename' as a block device.
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
@ -49,7 +49,9 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Configuration ************************************************************/
|
/* Configuration ************************************************************/
|
||||||
|
|
||||||
/* If the erased state of FLASH memory is anything other than 0xff, then this
|
/* If the erased state of FLASH memory is anything other than 0xff, then this
|
||||||
* configuration should be provided.
|
* configuration should be provided.
|
||||||
*/
|
*/
|
||||||
@ -144,8 +146,9 @@ int nxffs_initialize(FAR struct mtd_dev_s *mtd);
|
|||||||
* Name: nxffs_dump
|
* Name: nxffs_dump
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Dump a summary of the contents of an NXFFS file system. CONFIG_DEBUG_FEATURES
|
* Dump a summary of the contents of an NXFFS file system.
|
||||||
* and CONFIG_DEBUG_FS must be enabled for this function to do anything.
|
* CONFIG_DEBUG_FEATURES and CONFIG_DEBUG_FS must be enabled for this
|
||||||
|
* function to do anything.
|
||||||
*
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* mtd - The MTD device that provides the interface to NXFFS-formatted
|
* mtd - The MTD device that provides the interface to NXFFS-formatted
|
||||||
|
@ -46,6 +46,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Data entry declaration prototypes ****************************************/
|
/* Data entry declaration prototypes ****************************************/
|
||||||
|
|
||||||
/* Procfs operations are a subset of the mountpt_operations */
|
/* Procfs operations are a subset of the mountpt_operations */
|
||||||
@ -61,14 +62,18 @@ struct procfs_operations
|
|||||||
int (*open)(FAR struct file *filep, FAR const char *relpath,
|
int (*open)(FAR struct file *filep, FAR const char *relpath,
|
||||||
int oflags, mode_t mode);
|
int oflags, mode_t mode);
|
||||||
|
|
||||||
/* The following methods must be identical in signature and position because
|
/* The following methods must be identical in signature and position
|
||||||
* the struct file_operations and struct mountp_operations are treated like
|
* because the struct file_operations and struct mountp_operations are
|
||||||
* unions.
|
* treated like unions.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int (*close)(FAR struct file *filep);
|
int (*close)(FAR struct file *filep);
|
||||||
ssize_t (*read)(FAR struct file *filep, FAR char *buffer, size_t buflen);
|
ssize_t (*read)(FAR struct file *filep,
|
||||||
ssize_t (*write)(FAR struct file *filep, FAR const char *buffer, size_t buflen);
|
FAR char *buffer,
|
||||||
|
size_t buflen);
|
||||||
|
ssize_t (*write)(FAR struct file *filep,
|
||||||
|
FAR const char *buffer,
|
||||||
|
size_t buflen);
|
||||||
|
|
||||||
/* The two structures need not be common after this point. The following
|
/* The two structures need not be common after this point. The following
|
||||||
* are extended methods needed to deal with the unique needs of mounted
|
* are extended methods needed to deal with the unique needs of mounted
|
||||||
@ -77,11 +82,13 @@ struct procfs_operations
|
|||||||
* Additional open-file-specific procfs operations:
|
* Additional open-file-specific procfs operations:
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int (*dup)(FAR const struct file *oldp, FAR struct file *newp);
|
int (*dup)(FAR const struct file *oldp,
|
||||||
|
FAR struct file *newp);
|
||||||
|
|
||||||
/* Directory operations */
|
/* Directory operations */
|
||||||
|
|
||||||
int (*opendir)(FAR const char *relpath, FAR struct fs_dirent_s *dir);
|
int (*opendir)(FAR const char *relpath,
|
||||||
|
FAR struct fs_dirent_s *dir);
|
||||||
int (*closedir)(FAR struct fs_dirent_s *dir);
|
int (*closedir)(FAR struct fs_dirent_s *dir);
|
||||||
int (*readdir)(FAR struct fs_dirent_s *dir);
|
int (*readdir)(FAR struct fs_dirent_s *dir);
|
||||||
int (*rewinddir)(FAR struct fs_dirent_s *dir);
|
int (*rewinddir)(FAR struct fs_dirent_s *dir);
|
||||||
@ -161,9 +168,10 @@ extern "C"
|
|||||||
*
|
*
|
||||||
* procfs_memcpy() is a helper function. Each read() method should
|
* procfs_memcpy() is a helper function. Each read() method should
|
||||||
* provide data in a local data buffer ('src' and 'srclen'). This
|
* provide data in a local data buffer ('src' and 'srclen'). This
|
||||||
* will transfer the data to the user receive buffer ('dest' and 'destlen'),
|
* will transfer the data to the user receive buffer ('dest' and
|
||||||
* respecting both (1) the size of the destination buffer so that it will
|
* 'destlen'), respecting both (1) the size of the destination buffer so
|
||||||
* write beyond the user receiver and (1) the file position, 'offset'.
|
* that it will write beyond the user receiver and (1) the file position,
|
||||||
|
* 'offset'.
|
||||||
*
|
*
|
||||||
* This function will skip over data until the under of bytes specified
|
* This function will skip over data until the under of bytes specified
|
||||||
* by 'offset' have been skipped. Then it will transfer data from the
|
* by 'offset' have been skipped. Then it will transfer data from the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user