proc_dir_entry
2024-08-29 11:28:50
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
proc_file_operations->read->proc_file_read->read_proc
否则使用文件自己的file_operations中的read来读
具体请查看proc_register函数
最新文章
- ASP.NET Core 中文文档 第二章 指南(4.3)添加 View
- PHP学习资料下载
- 用序列化工具写入xml
- qq邮箱发送
- 芝麻HTTP:Ajax结果提取
- 剑指Offer——迅雷笔试题+知识点总结
- Cocos2D:塔防游戏制作之旅(十七)
- awk 计算某一列的和
- Maven替换为国内仓库
- DirectX11 With Windows SDK--18 使用DirectXCollision库进行碰撞检测
- foreach next 操作数组指针移动问题
- java 使用GET请求编码问题解决
- SQLServer中处理亿万级别的数据
- 改善Python程序的条条建议
- Java BIO、NIO、AIO 学习
- Win7中的路由转发配置实验
- Linux:curl
- Dotnet listview
- node.js的npm命令常见错误及解决方案
- poj1011 Sticks(DFS+剪枝)
热门文章
- js 前加分号和感叹号是什么意思?
- 使用Redis做MyBatis的二级缓存
- phpcms v9后台登陆验证码无法显示,怎么取消验证码
- 自己的一些 Demo,源码链接
- web服务器和应用服务器
- 在线最优化求解(Online Optimization)之二:截断梯度法(TG)
- uva 11235
- 给Jquery添加alert,prompt方法,类似系统的Alert,Prompt,可以响应键盘,支持拖动
- spring mvc 注解 annot失效
- Consumer closed input channel or an error occurred. events=0x8 channel is unrecoverably broken and will be disposed(待解决)