VFS与进程关联
来源:互联网 发布:c语言写九九乘法表 编辑:程序博客网 时间:2024/05/19 09:50
进程描述符中与文件系统相关的成员:
struct task_struct {
/* filesystem information */ struct fs_struct *fs;/* open file information */ struct files_struct *files;/* namespaces */ struct nsproxy *nsproxy;
}
进程能看到的文件系统相关成员:
struct fs_struct { int users; spinlock_t lock; seqcount_t seq; int umask; int in_exec; struct path root, pwd;进程当前目录和root目录};
进程能看到的打开的文件表:
struct files_struct { /* * read mostly part */ atomic_t count; bool resize_in_progress; wait_queue_head_t resize_wait;
struct fdtable __rcu *fdt;
struct fdtable fdtab; /* * written part on a separate cache line in SMP */ spinlock_t file_lock ____cacheline_aligned_in_smp; unsigned int next_fd; unsigned long close_on_exec_init[1]; unsigned long open_fds_init[1]; unsigned long full_fds_bits_init[1]; struct file __rcu * fd_array[NR_OPEN_DEFAULT];};
这个成员是进程所在的命名空间,其影响是全局性的:
struct nsproxy { atomic_t count; struct uts_namespace *uts_ns; struct ipc_namespace *ipc_ns; struct mnt_namespace *mnt_ns; struct pid_namespace *pid_ns_for_children; struct net *net_ns; struct cgroup_namespace *cgroup_ns;};
- VFS与进程关联
- linux VFS 之六:进程与文件系统的关联
- TCP/IP源码学习(47)——socket与VFS的关联
- VFS文件系统之一:VFS与MTD
- vfs与特殊文件系统
- 根文件系统与VFS
- VFS与MTD
- socket 与 vfs
- linux文件系统(三)——进程与VFS的关系
- Linux文件系统(三)——进程与VFS的关系
- 端口与系统进程关联代码2
- Linux支持文件系统与VFS
- VFS
- VFS
- VFS
- VFS
- VFS
- VFS
- chapter3 递归神经网络
- linux下jdk的安装
- 算法的复杂度分析
- Qt下Armadillo矩阵函数库的添加
- Android性能优化系列之内存优化
- VFS与进程关联
- L1-016. 查验身份证
- RHEL6.4安装zabbix3.2 agent
- 安卓中数据序列化之Serializable与Parcelable
- [Codeforces375D]Tree and Queries(dsu on the tree+bit)
- Problem B: 字符类的封装
- Caffe学习(1)——caffe架构及模型
- 【Leetcode】405. Convert a Number to Hexadecimal
- vs2008编译osip/eXosip