Linux File 結構說明

來源:互聯網
上載者:User

http://fxr.watson.org/fxr/source/include/linux/fs.h?v=linux-2.4.22#L563

 

struct file {
564         struct list_head        f_list;
565         struct dentry           *f_dentry;
566         struct vfsmount         *f_vfsmnt;
567         struct file_operations  *f_op;
568         atomic_t                f_count;
569         unsigned int            f_flags;
570         mode_t                  f_mode;
571         loff_t                  f_pos;
572         unsigned long           f_reada, f_ramax, f_raend, f_ralen, f_rawin;
573         struct fown_struct      f_owner;
574         unsigned int            f_uid, f_gid;
575         int                     f_error;
576
577         unsigned long           f_version;
578
579         /* needed for tty driver, and maybe others */
580         void                    *private_data;
581
582         /* preallocated helper kiobuf to speedup O_DIRECT */
583         struct kiobuf           *f_iobuf;
584         long                    f_iobuf_lock;
585 };

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.