Modify FS initialization logic to handle AIO container initialization.

This commit is contained in:
Gregory Nutt
2014-10-06 08:11:37 -06:00
parent 39c26d4cd4
commit d2797bf482
4 changed files with 106 additions and 5 deletions
+4 -4
View File
@@ -170,7 +170,7 @@ static int _inode_compare(FAR const char *fname,
****************************************************************************/
/****************************************************************************
* Name: fs_initialize
* Name: inode_initialize
*
* Description:
* This is called from the OS initialization logic to configure the file
@@ -178,10 +178,10 @@ static int _inode_compare(FAR const char *fname,
*
****************************************************************************/
void fs_initialize(void)
void inode_initialize(void)
{
/* Initialize the semaphore to one (to support one-at-
* a-time access to the inode tree).
/* Initialize the semaphore to one (to support one-at-a-time access to the
* inode tree).
*/
(void)sem_init(&g_inode_sem.sem, 0, 1);
+11
View File
@@ -129,6 +129,17 @@ EXTERN FAR struct inode *root_inode;
* Public Function Prototypes
****************************************************************************/
/* fs_inode.c ***************************************************************/
/****************************************************************************
* Name: inode_initialize
*
* Description:
* This is called from the OS initialization logic to configure the file
* system.
*
****************************************************************************/
void inode_initialize(void);
/****************************************************************************
* Name: inode_semtake
*