*参照元 [#ye123829]
#backlinks

*説明 [#z7bf9bfc]
-パス: [[linux-4.4.1/include/linux/fs.h]]

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


**参考 [#n11f3094]


*実装 [#u887645f]
 struct file {
         union {
                 struct llist_node       fu_llist;
                 struct rcu_head         fu_rcuhead;
         } f_u;
-
--[[linux-4.4.1/llist_node]]
--[[linux-4.4.1/rcu_head]]

         struct path             f_path;
         struct inode            *f_inode;       /* cached value */
         const struct file_operations    *f_op;
 
-
--[[linux-4.4.1/path]]
--[[linux-4.4.1/inode]]
--[[linux-4.4.1/file_operations]]

         /*
          * Protects f_ep_links, f_flags.
          * Must not be taken from IRQ context.
          */
         spinlock_t              f_lock;
         atomic_long_t           f_count;
         unsigned int            f_flags;
-
--[[linux-4.4.1/spinlock_t]]
--[[linux-4.4.1/atomic_long_t]]

         fmode_t                 f_mode;
         struct mutex            f_pos_lock;
         loff_t                  f_pos;
-
--[[linux-4.4.1/fmode_t]]
--[[linux-4.4.1/mutex]]
--[[linux-4.4.1/loff_t]]

         struct fown_struct      f_owner;
         const struct cred       *f_cred;
         struct file_ra_state    f_ra;
 
-
--[[linux-4.4.1/fown_struct]]
--[[linux-4.4.1/cred]]
--[[linux-4.4.1/file_ra_state]]

         u64                     f_version;
 #ifdef CONFIG_SECURITY
-
--[[linux-4.4.1/CONFIG_SECURITY]]

         void                    *f_security;
 #endif
         /* needed for tty driver, and maybe others */
         void                    *private_data;
 
 #ifdef CONFIG_EPOLL
-
--[[linux-4.4.1/CONFIG_EPOLL]]

         /* Used by fs/eventpoll.c to link all the hooks to this file */
         struct list_head        f_ep_links;
         struct list_head        f_tfile_llink;
 #endif /* #ifdef CONFIG_EPOLL */
         struct address_space    *f_mapping;
-
--[[linux-4.4.1/address_space]]

 } __attribute__((aligned(4)));  /* lest something weird decides that 2 is OK */
-
--[[linux-4.4.1/__attribute__()]]


*コメント [#xc980b28]


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