函数源码

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source File:mm\mmap.c Create Date:2022-07-27 16:15:36
首页 Copyright©Brick

660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
/*
 * Helper for vma_adjust() in the split_vma insert case: insert a vma into the
 * mm's list and rbtree.  It has already been inserted into the interval tree.
 */
static void __insert_vm_struct(struct mm_struct *mm, struct vm_area_struct *vma)
{
    struct vm_area_struct *prev;
    struct rb_node **rb_link, *rb_parent;
 
    if (find_vma_links(mm, vma->vm_start, vma->vm_end,
               &prev, &rb_link, &rb_parent))
        BUG();
    __vma_link(mm, vma, prev, rb_link, rb_parent);
    mm->map_count++;
}