Back to home page

LXR

 
 

    


0001 #include <linux/mm_types.h>
0002 #include <linux/rbtree.h>
0003 #include <linux/rwsem.h>
0004 #include <linux/spinlock.h>
0005 #include <linux/list.h>
0006 #include <linux/cpumask.h>
0007 
0008 #include <linux/atomic.h>
0009 #include <linux/user_namespace.h>
0010 #include <asm/pgtable.h>
0011 #include <asm/mmu.h>
0012 
0013 #ifndef INIT_MM_CONTEXT
0014 #define INIT_MM_CONTEXT(name)
0015 #endif
0016 
0017 struct mm_struct init_mm = {
0018     .mm_rb      = RB_ROOT,
0019     .pgd        = swapper_pg_dir,
0020     .mm_users   = ATOMIC_INIT(2),
0021     .mm_count   = ATOMIC_INIT(1),
0022     .mmap_sem   = __RWSEM_INITIALIZER(init_mm.mmap_sem),
0023     .page_table_lock =  __SPIN_LOCK_UNLOCKED(init_mm.page_table_lock),
0024     .mmlist     = LIST_HEAD_INIT(init_mm.mmlist),
0025     .user_ns    = &init_user_ns,
0026     INIT_MM_CONTEXT(init_mm)
0027 };