文档详情

《Proc 源代码分析》.pdf

发布:2016-01-05约6.3万字共34页下载文档
文本预览下载声明
Proc 文件系统源代码分析报告 Proc 文件系统源代码分析报告 学 生:黄 润 真 学 生: 学 号:9811530 学 号: 老 师:李 善 平 老 师: 一九九九年六月 一九九九年六月 Proc 文件系统的源代码分析报告 目 录 目 录 一、概述1 1、 /PROC 文件系统简介1 2 、 修改内核参数 2 二、PROC 文件系统的相关数据结构3 1、 数据结构的定义 3 1) struct file_system_type 定义3 2) Struct super_block 定义3 3) Struct inode 定义4 4) struct dentry 定义6 5) Struct file 定义 6 6) Struct proc_dir_entry 定义7 7) Struct super_operations 定义8 8) struct file_operations 定义8 9) struct inode_operations 定义9 2 、 PROC 文件系统的数据实例 9 1) proc 的file_system_type 定义9 2) proc 的super_operations 定义10 3) proc 的一般file_operations 和 inode_operations 定义10 4) 根/proc 的file_operations 和 inode_operations 定义 11 三、PROC 文件系统的初始化12 1、 初始化相关的数据实例 12 2 、 初始化流程 14 四、PROC 文件系统的操作流程15 1、 SYS_OPEN 的实现过程15 2 、 LOOKUP 操作 16 3、 READDIR 操作 18 4 、 READ 操作19 五、PROC 文件系统的 INODE 操作20 1、 INODE 操作流程 20 2 、 源代码分析 21 1) proc_read_super 函数22 2) proc _get_inode 函数22 3)
显示全部
相似文档