Next What's a file? 7

include/linux/fs.h

     drwxr-xr-x  3 mjd users    4096 2007-11-22 21:01 bin
     struct inode {
             struct hlist_node  i_hash;
             struct list_head   i_list;
             struct list_head   i_sb_list;
             struct list_head   i_dentry;
             unsigned long              i_ino;
             atomic_t           i_count;
             unsigned int               i_nlink;      3
             uid_t                      i_uid;        mjd
             gid_t                      i_gid;        users
             dev_t                      i_rdev;
             unsigned long              i_version;
             loff_t                     i_size;        4096
             struct timespec            i_atime;
             struct timespec            i_mtime;        2007-11-22 21:01 
             struct timespec            i_ctime;
             unsigned int               i_blkbits;
             blkcnt_t           i_blocks;
             unsigned short          i_bytes;
             umode_t                    i_mode;        drwxr-xr-x
             ...
     };


Next Copyright © 2007 M. J. Dominus