*参照元 [#ia6f7ed0]
#backlinks

*説明 [#r3208ea8]
-パス: [[linux-4.4.1/fs/proc/internal.h]]

-FIXME: これは何?
--説明


**参考 [#vb2a0e73]


*実装 [#d629174e]
 /*
  * This is not completely implemented yet. The idea is to
  * create an in-memory tree (like the actual /proc filesystem
  * tree) of these proc_dir_entries, so that we can dynamically
  * add new files to /proc.
  *
  * parent/subdir are used for the directory structure (every /proc file has a
  * parent, but "subdir" is empty for all non-directory entries).
  * subdir_node is used to build the rb tree "subdir" of the parent.
  */
 struct proc_dir_entry {
         unsigned int low_ino;
         umode_t mode;
-
--[[linux-4.4.1/umode_t]]

         nlink_t nlink;
-
--[[linux-4.4.1/nlink_t]]

         kuid_t uid;
         kgid_t gid;
-
--[[linux-4.4.1/kuid_t]]
--[[linux-4.4.1/kgid_t]]

         loff_t size;
-
--[[linux-4.4.1/loff_t]]

         const struct inode_operations *proc_iops;
         const struct file_operations *proc_fops;
-
--[[linux-4.4.1/inode_operations]]
--[[linux-4.4.1/file_operations]]

         struct proc_dir_entry *parent;
-
--[[linux-4.4.1/proc_dir_entry]]

         struct rb_root subdir;
         struct rb_node subdir_node;
-
--[[linux-4.4.1/rb_root]]
--[[linux-4.4.1/rb_node]]

         void *data;
         atomic_t count;         /* use count */
         atomic_t in_use;        /* number of callers into module in progress; */
                         /* negative -> it's going away RSN */
-
--[[linux-4.4.1/atomic_t]]

         struct completion *pde_unload_completion;
-
--[[linux-4.4.1/completion]]

         struct list_head pde_openers;   /* who did ->open, but not ->release */
-
--[[linux-4.4.1/list_head]]

         spinlock_t pde_unload_lock; /* proc_fops checks and pde_users bumps */
-
--[[linux-4.4.1/spinlock_t]]

         u8 namelen;
         char name[];
 };


*コメント [#k03670a5]


トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS