fs/vfs: Move file_allocate from fs/inode/inode.h to include/nuttx/fs/fs.h
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
4af98af376
commit
4d4bb458da
@ -407,22 +407,6 @@ void inode_release(FAR struct inode *inode);
|
|||||||
|
|
||||||
int foreach_inode(foreach_inode_t handler, FAR void *arg);
|
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
|
* Name: dir_allocate
|
||||||
*
|
*
|
||||||
|
@ -769,6 +769,22 @@ void files_releaselist(FAR struct filelist *list);
|
|||||||
|
|
||||||
int files_duplist(FAR struct filelist *plist, FAR struct filelist *clist);
|
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
|
* Name: file_dup
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user