struct file defined in include/linux/fs.h
来源:互联网 发布:双十一值得买 知乎 编辑:程序博客网 时间:2024/05/16 13:03
struct file defined in include/linux/fs.h
struct file
{
/*
* fu_list becomes invalid after file_free is called and queued via
* fu_rcuhead for RCU freeing
*/
union {
struct list_head fu_list;
struct rcu_head fu_rcuhead;
} f_u;
struct path f_path;
#define f_dentry f_path.dentry
#define f_vfsmnt f_path.mnt
const struct file_operations *f_op;
spinlock_t f_lock; /* f_ep_links, f_flags, no IRQ */
#ifdef CONFIG_SMP
int f_sb_list_cpu;
#endif
atomic_long_t f_count;
unsigned int f_flags;
fmode_t f_mode;
loff_t f_pos;
struct fown_struct f_owner;
const struct cred *f_cred;
struct file_ra_state f_ra;
u64 f_version;
#ifdef CONFIG_SECURITY
void *f_security;
#endif
/* needed for tty driver, and maybe others */
void *private_data;
#ifdef CONFIG_EPOLL
/* Used by fs/eventpoll.c to link all the hooks to this file */
struct list_head f_ep_links;
#endif /* #ifdef CONFIG_EPOLL */
struct address_space *f_mapping;
#ifdef CONFIG_DEBUG_WRITECOUNT
unsigned long f_mnt_write_state;
#endif
};
- struct file defined in include/linux/fs.h
- struct file_operations and struct inode_operations defined in include/linux/fs.h
- struct usb_device(include/linux/usb.h)
- linux内核源代码include/linux/fs.h中关键的和设备驱动程序有关的结构
- #incllude<file.h>与#include"file.h"
- #include<file.h>与#include "file.h"区别
- #include<file.h>与#include"file.h"的区别
- #include<file.h>与#include"file.h"的区别
- #include<file.h>与#include“file.h”的区别
- struct task_struct 结构分析 \linux-1.0\linux\include\linux\sched.h
- Re: Removing of UTS_RELEASE in include/linux/version.h
- include/linux/init.h
- include/linux/mmzone.h
- include/linux/gfp.h
- include/linux/kernel.h
- include/linux/list.h
- include/linux/cdev.h
- include/linux/types.h
- 【八一八系列】之近年来很热门的HTML5技术
- 关于flash的总结
- Android Socket 聊天工具(一个服务端实现多个客户端间通信)
- HDOJ 1025
- 将博客搬至CSDN
- struct file defined in include/linux/fs.h
- Eclipse http4e插件介绍
- 浅谈C语言的优先级、符号以及嵌套问题
- 体感多点触碰虚拟
- jsp中按钮使用、网页间跳转的几个小技巧
- s3c2440 PWM
- 关于云计算的几个网站
- 架构师在敏捷中是猪还是鸡
- javascript中try catch finally 的使用