RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
|
#include <dfs.h>
#include <dfs_fs.h>
#include <dfs_dentry.h>
#include <dfs_file.h>
#include <dfs_mnt.h>
#include <rtservice.h>
#include "dfs_private.h"
#include <rtdbg.h>
#include <finsh.h>
宏定义 | |
#define | DBG_TAG "DFS" |
#define | DBG_LVL DBG_INFO |
函数 | |
rt_err_t | dfs_lock (void) |
void | dfs_unlock (void) |
rt_err_t | dfs_file_lock (void) |
void | dfs_file_unlock (void) |
int | dfs_init (void) |
INIT_PREV_EXPORT (dfs_init) | |
int | fdt_fd_new (struct dfs_fdtable *fdt) |
void | fdt_fd_release (struct dfs_fdtable *fdt, int fd) |
struct dfs_file * | fdt_get_file (struct dfs_fdtable *fdt, int fd) |
int | fdt_fd_associate_file (struct dfs_fdtable *fdt, int fd, struct dfs_file *file) |
int | fd_new (void) |
void | fd_release (int fd) |
struct dfs_file * | fd_get (int fd) |
struct dfs_fdtable * | dfs_fdtable_get (void) |
struct dfs_fdtable * | dfs_fdtable_get_global (void) |
int | dfs_fdtable_dup (struct dfs_fdtable *fdt_dst, struct dfs_fdtable *fdt_src, int fd_src) |
int | dfs_fdtable_drop_fd (struct dfs_fdtable *fdt, int fd) |
int | dfs_dup (int oldfd, int startfd) |
int | dfs_dup_to (int oldfd, struct dfs_fdtable *fdtab) |
int | dfs_dup_from (int oldfd, struct dfs_fdtable *fdtab) |
int | sys_dup (int oldfd) |
rt_err_t | sys_dup2 (int oldfd, int newfd) |
const char * | dfs_subdir (const char *directory, const char *filename) |
RTM_EXPORT (dfs_subdir) | |
char * | dfs_normalize_path (const char *directory, const char *filename) |
RTM_EXPORT (dfs_normalize_path) | |
int | list_fd (void) |
MSH_CMD_EXPORT (list_fd, list file descriptor) | |
int | dfs_fd_dump (int argc, char **argv) |
MSH_CMD_EXPORT_ALIAS (dfs_fd_dump, fd_dump, fd dump) | |
rt_err_t dfs_lock | ( | void | ) |
this function will lock device file system.
引用了 rt_mutex_take() , 以及 RT_WAITING_FOREVER.
void dfs_unlock | ( | void | ) |
this function will lock device file system.
引用了 rt_mutex_release().