Chinaunix首页 | 论坛 | 博客
  • 博客访问: 425486
  • 博文数量: 126
  • 博客积分: 35
  • 博客等级: 民兵
  • 技术积分: 1262
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-19 16:39
文章分类

全部博文(126)

文章存档

2017年(2)

2016年(20)

2015年(64)

2014年(24)

2013年(16)

我的朋友

分类: C/C++

2015-01-12 23:00:54


/usr/src/kernels/2.6.18-238.el5-x86_64/include/linux/fs.h
  1. struct file {
  2.         /*
  3.          * fu_list becomes invalid after file_free is called and queued via
  4.          * fu_rcuhead for RCU freeing
  5.          */
  6.         union {
  7.                 struct list_head fu_list;
  8.                 struct rcu_head fu_rcuhead;
  9.         } f_u;
  10.         struct dentry *f_dentry;
  11.         struct vfsmount *f_vfsmnt;
  12.         const struct file_operations *f_op;
  13.         atomic_t f_count;
  14.         unsigned int f_flags;
  15.         mode_t f_mode;
  16.         loff_t f_pos;
  17.         struct fown_struct f_owner;
  18.         unsigned int f_uid, f_gid;
  19.         struct file_ra_state f_ra;

  20.         unsigned long f_version;
  21.         void *f_security;

  22.         /* needed for tty driver, and maybe others */
  23.         void *private_data;

  24. #ifdef CONFIG_EPOLL
  25.         /* Used by fs/eventpoll.c to link all the hooks to this file */
  26.         struct list_head f_ep_links;
  27.         spinlock_t f_ep_lock;
  28. #endif /* #ifdef CONFIG_EPOLL */
  29.         struct address_space *f_mapping;
  30. };

阅读(282) | 评论(0) | 转发(0) |
0

上一篇:ubuntu的使用

下一篇:返回值的含义

给主人留下些什么吧!~~