Linux Kernel Study Notes-structvm_area_struct

Source: Internet
Author: User
Linux Kernel learning notes-structvm_area_struct-Linux general technology-Linux programming and kernel information. For more information, see the following. In the Linux kernel, the most basic management unit for VM management should be struct vm_area_struct, which describes a continuous VM space with the same access attribute, the size of the virtual memory is an integer multiple of the physical memory page.

The following is the definition of the struct vm_area_struct struct:
CODE :/*
* This struct defines a memory VMM memory area. There is color: black; background-color: # a0ffff; "> vm_area_struct {
Struct mm_struct * vm_mm;/* VM area parameters */
Unsigned long vm_start;
Unsigned long vm_end;

/* Linked list of VM areas per task, sorted by address */
Struct vm_area_struct * vm_next;

Pgprot_t vm_page_prot;
Unsigned long vm_flags;

/* AVL tree of VM areas per task, sorted by address */
Short vm_avl_height;
Struct vm_area_struct * vm_avl_left;
Struct vm_area_struct * vm_avl_right;

/* For areas with an address space and backing store,
* Font-size: 10px; "> vm_area_struct * vm_next_share;
Struct vm_area_struct ** vm_pprev_share;

Struct vm_operations_struct * vm_ops;
Unsigned long vm_pgoff;/* offset in PAGE_SIZE units, * not * PAGE_CACHE_SIZE */
Struct file * vm_file;
Unsigned long vm_raend;
Void * vm_private_data;/* was vm_pte (shared mem )*/
};

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.