Linux File structure

Source: Internet
Author: 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 and 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 };

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.