summaryrefslogtreecommitdiff
path: root/nuttx/fs/fs_inode.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-08-03 22:04:14 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-08-03 22:04:14 +0000
commit16d6e830b07e83e2e791c7d7bc6c712af28541e1 (patch)
tree5a95a741d66c4cf2cced6bd05f1408b25d938895 /nuttx/fs/fs_inode.c
parent4245767d673bcdf78d612c8d51aa9807fdbb724b (diff)
downloadpx4-nuttx-16d6e830b07e83e2e791c7d7bc6c712af28541e1.tar.gz
px4-nuttx-16d6e830b07e83e2e791c7d7bc6c712af28541e1.tar.bz2
px4-nuttx-16d6e830b07e83e2e791c7d7bc6c712af28541e1.zip
Improve capability to traverse inodes in the NuttX psuedo-filesystem; now returns statfs
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5005 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/fs_inode.c')
-rw-r--r--nuttx/fs/fs_inode.c24
1 files changed, 20 insertions, 4 deletions
diff --git a/nuttx/fs/fs_inode.c b/nuttx/fs/fs_inode.c
index 0b88c4b3b..14da54cea 100644
--- a/nuttx/fs/fs_inode.c
+++ b/nuttx/fs/fs_inode.c
@@ -1,7 +1,7 @@
/****************************************************************************
* fs/fs_inode.c
*
- * Copyright (C) 2007-2009, 2011 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007-2009, 2011-2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -70,9 +70,13 @@ FAR struct inode *root_inode = NULL;
/****************************************************************************
* Name: _inode_compare
+ *
+ * Description:
+ * Compare two inode names
+ *
****************************************************************************/
-static int _inode_compare(const char *fname,
+static int _inode_compare(FAR const char *fname,
FAR struct inode *node)
{
char *nname = node->i_name;
@@ -174,6 +178,10 @@ void fs_initialize(void)
/****************************************************************************
* Name: inode_semtake
+ *
+ * Description:
+ * Get exclusive access to the in-memory inode tree (tree_sem).
+ *
****************************************************************************/
void inode_semtake(void)
@@ -192,6 +200,10 @@ void inode_semtake(void)
/****************************************************************************
* Name: inode_semgive
+ *
+ * Description:
+ * Relinquish exclusive access to the in-memory inode tree (tree_sem).
+ *
****************************************************************************/
void inode_semgive(void)
@@ -315,6 +327,10 @@ FAR struct inode *inode_search(const char **path,
/****************************************************************************
* Name: inode_free
+ *
+ * Description:
+ * Free resources used by an inode
+ *
****************************************************************************/
void inode_free(FAR struct inode *node)
@@ -331,8 +347,8 @@ void inode_free(FAR struct inode *node)
* Name: inode_nextname
*
* Description:
- * Given a path with node names separated by '/', return
- * the next node name.
+ * Given a path with node names separated by '/', return the next node
+ * name.
*
****************************************************************************/