*参照元 [#uf75458a] #backlinks *説明 [#g257621b] -パス: [[linux-2.6.33/include/linux/fs.h]] -FIXME: これは何? --説明 **参考 [#b70ffb22] *実装 [#rdb7c701] struct inode { struct hlist_node i_hash; - --[[linux-2.6.33/hlist_node]] struct list_head i_list; /* backing dev IO list */ - --[[linux-2.6.33/list_head]] struct list_head i_sb_list; struct list_head i_dentry; unsigned long i_ino; atomic_t i_count; - --[[linux-2.6.33/atomic_t]] unsigned int i_nlink; uid_t i_uid; - --[[linux-2.6.33/uid_t]] gid_t i_gid; - --[[linux-2.6.33/gid_t]] dev_t i_rdev; - -デバイス番号。 --[[linux-2.6.33/dev_t]] unsigned int i_blkbits; u64 i_version; loff_t i_size; - --[[linux-2.6.33/loff_t]] #ifdef __NEED_I_SIZE_ORDERED seqcount_t i_size_seqcount; - --[[linux-2.6.33/seqcount_t]] #endif struct timespec i_atime; - --[[linux-2.6.33/timespec]] struct timespec i_mtime; struct timespec i_ctime; blkcnt_t i_blocks; - --[[linux-2.6.33/blkcnt_t]] unsigned short i_bytes; umode_t i_mode; - --[[linux-2.6.33/umode_t]] spinlock_t i_lock; /* i_blocks, i_bytes, maybe i_size */ - --[[linux-2.6.33/spinlock_t]] struct mutex i_mutex; - --[[linux-2.6.33/mutex]] struct rw_semaphore i_alloc_sem; - --[[linux-2.6.33/rw_semaphore]] const struct inode_operations *i_op; - --[[linux-2.6.33/inode_operations]] const struct file_operations *i_fop; /* former ->i_op->default_file_ops */ - --[[linux-2.6.33/file_operations]] struct super_block *i_sb; - --[[linux-2.6.33/super_block]] struct file_lock *i_flock; - --[[linux-2.6.33/file_lock]] struct address_space *i_mapping; - --[[linux-2.6.33/address_space]] struct address_space i_data; #ifdef CONFIG_QUOTA struct dquot *i_dquot[MAXQUOTAS]; - --[[linux-2.6.33/dquot]] #endif struct list_head i_devices; union { struct pipe_inode_info *i_pipe; - --[[linux-2.6.33/pipe_inode_info]] struct block_device *i_bdev; - --[[linux-2.6.33/block_device]] struct cdev *i_cdev; - --[[linux-2.6.33/cdev]] }; __u32 i_generation; #ifdef CONFIG_FSNOTIFY __u32 i_fsnotify_mask; /* all events this inode cares about */ struct hlist_head i_fsnotify_mark_entries; /* fsnotify mark entries */ - --[[linux-2.6.33/hlis_head]] #endif #ifdef CONFIG_INOTIFY struct list_head inotify_watches; /* watches on this inode */ struct mutex inotify_mutex; /* protects the watches list */ #endif unsigned long i_state; unsigned long dirtied_when; /* jiffies of first dirtying */ unsigned int i_flags; atomic_t i_writecount; #ifdef CONFIG_SECURITY void *i_security; #endif #ifdef CONFIG_FS_POSIX_ACL struct posix_acl *i_acl; - --[[linux-2.6.33/posix_acl]] struct posix_acl *i_default_acl; #endif void *i_private; /* fs or device private pointer */ }; *コメント [#wa136ae6]