RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
|
#include <rtthread.h>
#include "dfs_private.h"
#include <dfs.h>
#include <dfs_dentry.h>
#include <dfs_mnt.h>
#include <dfs_pcache.h>
#include <rtdbg.h>
宏定义 | |
#define | DBG_TAG "DFS.mnt" |
#define | DBG_LVL DBG_WARNING |
函数 | |
RT_OBJECT_HOOKLIST_DEFINE (dfs_mnt_umnt) | |
struct dfs_mnt * | dfs_mnt_create (const char *path) |
int | dfs_mnt_insert (struct dfs_mnt *mnt, struct dfs_mnt *child) |
int | dfs_mnt_remove (struct dfs_mnt *mnt) |
struct dfs_mnt * | dfs_mnt_dev_lookup (rt_device_t dev_id) |
struct dfs_mnt * | dfs_mnt_lookup (const char *fullpath) |
struct dfs_mnt * | dfs_mnt_ref (struct dfs_mnt *mnt) |
int | dfs_mnt_unref (struct dfs_mnt *mnt) |
int | dfs_mnt_setflags (struct dfs_mnt *mnt, int flags) |
int | dfs_mnt_destroy (struct dfs_mnt *mnt) |
const char * | dfs_mnt_get_mounted_path (struct rt_device *device) |
rt_bool_t | dfs_mnt_has_child_mnt (struct dfs_mnt *mnt, const char *fullpath) |
int | dfs_mnt_list (struct dfs_mnt *mnt) |
int | dfs_mnt_foreach (struct dfs_mnt *(*func)(struct dfs_mnt *mnt, void *parameter), void *parameter) |
#define DBG_LVL DBG_WARNING |
RT_OBJECT_HOOKLIST_DEFINE | ( | dfs_mnt_umnt | ) |
struct dfs_mnt * dfs_mnt_create | ( | const char * | path | ) |
引用了 dfs_mnt::child, dfs_mnt::flags, dfs_mnt::fullpath, LOG_I, MNT_IS_ALLOCED, dfs_mnt::ref_count, rt_atomic_store, rt_calloc(), rt_list_init() , 以及 dfs_mnt::sibling.
引用了 dfs_mnt::child, dfs_mnt_lookup(), dfs_mnt_ref(), dfs_mnt::flags, mkdir(), MNT_IS_ADDLIST, MNT_IS_LOCKED, dfs_mnt::parent, rt_atomic_sub, rt_list_insert_before() , 以及 RT_NULL.
int dfs_mnt_remove | ( | struct dfs_mnt * | mnt | ) |
引用了 dfs_mnt::child, dfs_mnt::fullpath, LOG_W, dfs_mnt::parent, dfs_mnt::ref_count, rt_atomic_sub, rt_list_isempty(), rt_list_remove() , 以及 dfs_mnt::sibling.
struct dfs_mnt * dfs_mnt_dev_lookup | ( | rt_device_t | dev_id | ) |
引用了 dfs_mnt::dev_id, dfs_lock(), dfs_unlock() , 以及 RT_NULL.
struct dfs_mnt * dfs_mnt_lookup | ( | const char * | fullpath | ) |
this function will return the file system mounted on specified path.
path | the specified path string. |
引用了 dfs_mnt::child, dfs_lock(), dfs_unlock(), DLOG, dfs_mnt::fs_ops, dfs_mnt::fullpath, LOG_D, dfs_filesystem_ops::name, rt_list_for_each_entry, rt_list_isempty(), RT_NULL , 以及 dfs_mnt::sibling.
引用了 DLOG, dfs_mnt::fs_ops, dfs_filesystem_ops::name, dfs_mnt::ref_count, rt_atomic_add , 以及 rt_atomic_load.
int dfs_mnt_unref | ( | struct dfs_mnt * | mnt | ) |
引用了 dfs_lock(), dfs_unlock(), DLOG, dfs_mnt::flags, dfs_mnt::fs_ops, dfs_mnt::fullpath, MNT_IS_UMOUNT, dfs_filesystem_ops::name, dfs_mnt::ref_count, rt_atomic_load, rt_atomic_sub, rt_free(), RT_NULL, RT_OBJECT_HOOKLIST_CALL , 以及 dfs_filesystem_ops::umount.
int dfs_mnt_setflags | ( | struct dfs_mnt * | mnt, |
int | flags ) |
引用了 dfs_mnt::flags, MNT_RDONLY , 以及 MS_RDONLY.
int dfs_mnt_destroy | ( | struct dfs_mnt * | mnt | ) |
引用了 dfs_mnt_remove(), dfs_mnt_unref(), dfs_mnt::flags, MNT_IS_ADDLIST, MNT_IS_MOUNTED , 以及 MNT_IS_UMOUNT.
const char * dfs_mnt_get_mounted_path | ( | struct rt_device * | device | ) |
this function will return the mounted path for specified device.
device | the device object which is mounted. |
引用了 dfs_lock(), dfs_unlock(), dfs_mnt::fullpath , 以及 RT_NULL.
引用了 dfs_lock(), dfs_unlock(), dfs_mnt::fullpath, RT_FALSE, RT_NULL , 以及 RT_TRUE.
int dfs_mnt_list | ( | struct dfs_mnt * | mnt | ) |
引用了 dfs_lock(), dfs_unlock() , 以及 RT_NULL.
int dfs_mnt_foreach | ( | struct dfs_mnt *(* | func )(struct dfs_mnt *mnt, void *parameter), |
void * | parameter ) |
引用了 dfs_lock() , 以及 dfs_unlock().