diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-02-19 13:14:39 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-02-19 13:14:39 -0600 |
commit | d4352a177b3e64a6ff2b26e189211d2fd0b7b731 (patch) | |
tree | 1555f4aafbe4aece6cdf536798cb5080ac2e3df9 /nuttx/fs/fs_internal.h | |
parent | 6b4b9ae6991355102b30f67a12af19a926105e74 (diff) | |
download | px4-nuttx-d4352a177b3e64a6ff2b26e189211d2fd0b7b731.tar.gz px4-nuttx-d4352a177b3e64a6ff2b26e189211d2fd0b7b731.tar.bz2 px4-nuttx-d4352a177b3e64a6ff2b26e189211d2fd0b7b731.zip |
Nodes in the pseudo-filesystem can now be renamed or moved within the pseduo-filesystem
Diffstat (limited to 'nuttx/fs/fs_internal.h')
-rw-r--r-- | nuttx/fs/fs_internal.h | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/nuttx/fs/fs_internal.h b/nuttx/fs/fs_internal.h index 648f02704..5dd45bc23 100644 --- a/nuttx/fs/fs_internal.h +++ b/nuttx/fs/fs_internal.h @@ -1,7 +1,7 @@ /**************************************************************************** * fs/fs_internal.h * - * Copyright (C) 2007, 2009, 2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009, 2012, 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -196,12 +196,31 @@ int inode_reserve(FAR const char *path, FAR struct inode **inode); /* fs_inoderemove.c *********************************************************/ /**************************************************************************** + * Name: inode_unlink + * + * Description: + * Given a path, remove a the node from the in-memory, inode tree that the + * path refers to. This is normally done in preparation to removing or + * moving an inode. + * + * Assumptions/Limitations: + * The caller must hold the inode semaphore + * + ****************************************************************************/ + +FAR struct inode *inode_unlink(FAR const char *path); + +/**************************************************************************** * Name: inode_remove * * Description: - * Remove a node from the in-memory, inode tree + * Given a path, remove a the node from the in-memory, inode tree that the + * path refers to and free all resources related to the inode. If the + * inode is in-use, then it will be unlinked, but will not be freed until + * the last reference to the inode is released. * - * NOTE: Caller must hold the inode semaphore + * Assumptions/Limitations: + * The caller must hold the inode semaphore * ****************************************************************************/ |