struct file_operations
来源:互联网 发布:boy london知乎 编辑:程序博客网 时间:2024/06/06 05:45
include/linux/fs.h
/*
* NOTE:* all file operations except setlease can be called without
* the big kernel lock held in all filesystems.
*/
struct file_operations {
struct module *owner;
loff_t (*llseek) (struct file *, loff_t, int);
ssize_t (*read) (struct file *, char __user *, size_t, loff_t *);
ssize_t (*write) (struct file *, const char __user *, size_t, loff_t *);
ssize_t (*aio_read) (struct kiocb *, const struct iovec *, unsigned long, loff_t);
ssize_t (*aio_write) (struct kiocb *, const struct iovec *, unsigned long, loff_t);
int (*readdir) (struct file *, void *, filldir_t);
unsigned int (*poll) (struct file *, struct poll_table_struct *);
long (*unlocked_ioctl) (struct file *, unsigned int, unsigned long);
long (*compat_ioctl) (struct file *, unsigned int, unsigned long);
int (*mmap) (struct file *, struct vm_area_struct *);
int (*open) (struct inode *, struct file *);
int (*flush) (struct file *, fl_owner_t id);
int (*release) (struct inode *, struct file *);
int (*fsync) (struct file *, int datasync);
int (*aio_fsync) (struct kiocb *, int datasync);
int (*fasync) (int, struct file *, int);
int (*lock) (struct file *, int, struct file_lock *);
ssize_t (*sendpage) (struct file *, struct page *, int, size_t, loff_t *, int);
unsigned long (*get_unmapped_area)(struct file *, unsigned long, unsigned long, unsigned long, unsigned long);
int (*check_flags)(int);
int (*flock) (struct file *, int, struct file_lock *);
ssize_t (*splice_write)(struct pipe_inode_info *, struct file *, loff_t *, size_t, unsigned int);
ssize_t (*splice_read)(struct file *, loff_t *, struct pipe_inode_info *, size_t, unsigned int);
int (*setlease)(struct file *, long, struct file_lock **);
long (*fallocate)(struct file *file, int mode, loff_t offset,
loff_t len);
};
- struct file_operations
- struct file_operations
- struct file_operations
- struct file_operations
- struct file_operations
- struct file_operations
- Linux2.6 struct file_operations
- struct file_operations kvm_vm_fops
- struct file_operations 和 struct inode 详解
- struct inode、struct file和struct file_operations的宏观认识
- static struct file_operations结构体介绍(转)
- 2.6.36中struct file_operations 的变化
- 2.6.36中struct file_operations 的变化
- struct file_operations中 ioctl 和 unlocked_ioctl
- struct file_operations及struct file结构体理解转
- void cdev_init(struct cdev *cdev, const struct file_operations *fops)
- struct file_operations及struct file结构体理解转
- File_operations
- MessageBox的常见用法
- 使用Boost库中的组件进行C++内存管理
- 国内各大互联网公司相关技术站点2.0版 (集合腾讯、阿里、百度、搜狐、新浪、360等共49个)
- Win8安装Net Framework 3.5出现0x800F0906错误的解决办法
- eclipse + pydev
- struct file_operations
- How to install Savanna
- Android编程中的实用快捷键
- 电信增值短信平台软件模块清单(sp专用)
- EhCache 缓存系统简介
- javascript操作写入txt文件及消息: Automation 服务器不能创建对象问题
- myeclipse 打开卡顿
- CodeSmith(C#)简单示例及相关小知识
- 我的GVIM配置