struct proc_dir_entry {
        unsigned int low_ino;
        unsigned short namelen;
        const char *name;
        mode_t mode;
        nlink_t nlink;
        uid_t uid;
        gid_t gid;
        loff_t size;
        const struct inode_operations *proc_iops;
       
        const struct file_operations *proc_fops;
        struct module *owner;
        struct proc_dir_entry *next, *parent, *subdir;
        void *data;
        read_proc_t *read_proc;
        write_proc_t *write_proc;
        atomic_t count;               
        int pde_users;       
        spinlock_t pde_unload_lock;
        struct completion *pde_unload_completion;
        struct list_head pde_openers;       
};

 
 
在注册entry的时候,如果提供read_proc,读文件时调用路径为
proc_file_operations->read->proc_file_read->read_proc

否则使用文件自己的file_operations中的read来读

具体请查看proc_register函数

最新文章

  1. ASP.NET Core 中文文档 第二章 指南(4.3)添加 View
  2. PHP学习资料下载
  3. 用序列化工具写入xml
  4. qq邮箱发送
  5. 芝麻HTTP:Ajax结果提取
  6. 剑指Offer——迅雷笔试题+知识点总结
  7. Cocos2D:塔防游戏制作之旅(十七)
  8. awk 计算某一列的和
  9. Maven替换为国内仓库
  10. DirectX11 With Windows SDK--18 使用DirectXCollision库进行碰撞检测
  11. foreach next 操作数组指针移动问题
  12. java 使用GET请求编码问题解决
  13. SQLServer中处理亿万级别的数据
  14. 改善Python程序的条条建议
  15. Java BIO、NIO、AIO 学习
  16. Win7中的路由转发配置实验
  17. Linux:curl
  18. Dotnet listview
  19. node.js的npm命令常见错误及解决方案
  20. poj1011 Sticks(DFS+剪枝)

热门文章

  1. js 前加分号和感叹号是什么意思?
  2. 使用Redis做MyBatis的二级缓存
  3. phpcms v9后台登陆验证码无法显示,怎么取消验证码
  4. 自己的一些 Demo,源码链接
  5. web服务器和应用服务器
  6. 在线最优化求解(Online Optimization)之二:截断梯度法(TG)
  7. uva 11235
  8. 给Jquery添加alert,prompt方法,类似系统的Alert,Prompt,可以响应键盘,支持拖动
  9. spring mvc 注解 annot失效
  10. Consumer closed input channel or an error occurred. events=0x8 channel is unrecoverably broken and will be disposed(待解决)