*参照元 [#t40be37b]
#backlinks

*説明 [#qabdc3ac]
-パス: [[linux-2.6.33/include/linux/proc_fs.h]]

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


**参考 [#aaa3f1eb]


*実装 [#q6db6632]
 struct proc_dir_entry {
 	unsigned int low_ino;
 	unsigned short namelen;
 	const char *name;
 	mode_t mode;
-
--[[linux-2.6.33/mode_t]]

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

 	uid_t uid;
-
--[[linux-2.6.33/uid_t]]

 	gid_t gid;
-
--[[linux-2.6.33/gid_t]]

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

 	const struct inode_operations *proc_iops;
-
--[[linux-2.6.33/inode_operations]]

 	/*
 	 * NULL ->proc_fops means "PDE is going away RSN" or
 	 * "PDE is just created". In either case, e.g. ->read_proc won't be
 	 * called because it's too late or too early, respectively.
 	 *
 	 * If you're allocating ->proc_fops dynamically, save a pointer
 	 * somewhere.
 	 */
 	const struct file_operations *proc_fops;
-
--[[linux-2.6.33/file_operations]]

 	struct proc_dir_entry *next, *parent, *subdir;
-
--[[linux-2.6.33/proc_dir_entry]]

 	void *data;
 	read_proc_t *read_proc;
-
--[[linux-2.6.33/read_proc_t]]

 	write_proc_t *write_proc;
-
--[[linux-2.6.33/write_proc_t]]

 	atomic_t count;		/* use count */
-
--[[linux-2.6.33/atomic_t]]

 	int pde_users;	/* number of callers into module in progress */
 	spinlock_t pde_unload_lock; /* proc_fops checks and pde_users bumps */
-
--[[linux-2.6.33/spinlock_t]]

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

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

 };


*コメント [#j86e3346]

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