diff --git a/fs/inode/inode.h b/fs/inode/inode.h index a7635ecea2..3161a52a60 100644 --- a/fs/inode/inode.h +++ b/fs/inode/inode.h @@ -407,22 +407,6 @@ void inode_release(FAR struct inode *inode); int foreach_inode(foreach_inode_t handler, FAR void *arg); -/**************************************************************************** - * Name: file_allocate - * - * Description: - * Allocate a struct files instance and associate it with an inode - * instance. Returns the file descriptor == index into the files array. - * - * Returned Value: - * Zero (OK) is returned on success; a negated errno value is returned on - * any failure. - * - ****************************************************************************/ - -int file_allocate(FAR struct inode *inode, int oflags, off_t pos, - FAR void *priv, int minfd); - /**************************************************************************** * Name: dir_allocate * diff --git a/include/nuttx/fs/fs.h b/include/nuttx/fs/fs.h index 92e337b6b4..0784143fd9 100644 --- a/include/nuttx/fs/fs.h +++ b/include/nuttx/fs/fs.h @@ -769,6 +769,22 @@ void files_releaselist(FAR struct filelist *list); int files_duplist(FAR struct filelist *plist, FAR struct filelist *clist); +/**************************************************************************** + * Name: file_allocate + * + * Description: + * Allocate a struct files instance and associate it with an inode + * instance. Returns the file descriptor == index into the files array. + * + * Returned Value: + * Zero (OK) is returned on success; a negated errno value is returned on + * any failure. + * + ****************************************************************************/ + +int file_allocate(FAR struct inode *inode, int oflags, off_t pos, + FAR void *priv, int minfd); + /**************************************************************************** * Name: file_dup *