RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
载入中...
搜索中...
未找到
dfs_file_ops结构体 参考

#include <dfs_file.h>

成员变量

int(* open )(struct dfs_file *file)
 
int(* close )(struct dfs_file *file)
 
int(* ioctl )(struct dfs_file *file, int cmd, void *arg)
 
ssize_t(* read )(struct dfs_file *file, void *buf, size_t count, off_t *pos)
 
ssize_t(* write )(struct dfs_file *file, const void *buf, size_t count, off_t *pos)
 
int(* flush )(struct dfs_file *file)
 
off_t(* lseek )(struct dfs_file *file, off_t offset, int wherece)
 
int(* truncate )(struct dfs_file *file, off_t offset)
 
int(* getdents )(struct dfs_file *file, struct dirent *dirp, uint32_t count)
 
int(* poll )(struct dfs_file *file, struct rt_pollreq *req)
 
int(* mmap )(struct dfs_file *file, struct lwp_avl_struct *mmap)
 
int(* lock )(struct dfs_file *file, struct file_lock *flock)
 
int(* flock )(struct dfs_file *file, int, struct file_lock *flock)
 

详细描述

在文件 dfs_file.h38 行定义.

结构体成员变量说明

◆ open

int(* dfs_file_ops::open) (struct dfs_file *file)

在文件 dfs_file.h40 行定义.

◆ close

int(* dfs_file_ops::close) (struct dfs_file *file)

在文件 dfs_file.h41 行定义.

◆ ioctl

int(* dfs_file_ops::ioctl) (struct dfs_file *file, int cmd, void *arg)

在文件 dfs_file.h42 行定义.

◆ read

ssize_t(* dfs_file_ops::read) (struct dfs_file *file, void *buf, size_t count, off_t *pos)

在文件 dfs_file.h43 行定义.

◆ write

ssize_t(* dfs_file_ops::write) (struct dfs_file *file, const void *buf, size_t count, off_t *pos)

在文件 dfs_file.h44 行定义.

◆ flush

int(* dfs_file_ops::flush) (struct dfs_file *file)

在文件 dfs_file.h45 行定义.

◆ lseek

off_t(* dfs_file_ops::lseek) (struct dfs_file *file, off_t offset, int wherece)

在文件 dfs_file.h46 行定义.

◆ truncate

int(* dfs_file_ops::truncate) (struct dfs_file *file, off_t offset)

在文件 dfs_file.h47 行定义.

◆ getdents

int(* dfs_file_ops::getdents) (struct dfs_file *file, struct dirent *dirp, uint32_t count)

在文件 dfs_file.h48 行定义.

◆ poll

int(* dfs_file_ops::poll) (struct dfs_file *file, struct rt_pollreq *req)

在文件 dfs_file.h49 行定义.

◆ mmap

int(* dfs_file_ops::mmap) (struct dfs_file *file, struct lwp_avl_struct *mmap)

在文件 dfs_file.h51 行定义.

◆ lock

int(* dfs_file_ops::lock) (struct dfs_file *file, struct file_lock *flock)

在文件 dfs_file.h52 行定义.

◆ flock

int(* dfs_file_ops::flock) (struct dfs_file *file, int, struct file_lock *flock)

在文件 dfs_file.h53 行定义.