fs: Move inode_checkflags from include/nuttx/fs/fs.h to fs/inode/inode.h

since this function is only used inside fs subsystem

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2020-05-04 21:32:03 +08:00 committed by patacongo
parent f2c957144a
commit 4a3d28a957
3 changed files with 12 additions and 10 deletions

View File

@ -186,6 +186,16 @@ int inode_semtake(void);
void inode_semgive(void);
/****************************************************************************
* Name: inode_checkflags
*
* Description:
* Check if the access described by 'oflags' is supported on 'inode'
*
****************************************************************************/
int inode_checkflags(FAR struct inode *inode, int oflags);
/****************************************************************************
* Name: inode_search
*

View File

@ -49,6 +49,8 @@
#include <nuttx/fs/fs.h>
#include <nuttx/net/net.h>
#include "inode/inode.h"
/****************************************************************************
* Private Functions
****************************************************************************/

View File

@ -678,16 +678,6 @@ int register_mtdpartition(FAR const char *partition,
int unregister_mtddriver(FAR const char *path);
#endif
/****************************************************************************
* Name: inode_checkflags
*
* Description:
* Check if the access described by 'oflags' is supported on 'inode'
*
****************************************************************************/
int inode_checkflags(FAR struct inode *inode, int oflags);
/****************************************************************************
* Name: files_initlist
*