Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
mmu_context.h File Reference
#include <linux/compiler.h>
#include <linux/sched.h>
#include <linux/io.h>
#include <asm/cacheflush.h>
#include <asm/cpu-single.h>

Go to the source code of this file.

Macros

#define init_new_context(tsk, mm)   0
 
#define destroy_context(mm)   do { } while (0)
 
#define deactivate_mm(tsk, mm)   do { } while (0)
 
#define activate_mm(prev, next)   switch_mm(prev, next, NULL)
 
#define arch_exit_mmap(mm)
 

Macro Definition Documentation

#define activate_mm (   prev,
  next 
)    switch_mm(prev, next, NULL)

Definition at line 57 of file mmu_context.h.

#define arch_exit_mmap (   mm)
Value:
do { \
struct vm_area_struct *high_vma = find_vma(mm, 0xffff0000); \
if (high_vma) { \
BUG_ON(high_vma->vm_next); /* it should be last */ \
if (high_vma->vm_prev) \
high_vma->vm_prev->vm_next = NULL; \
else \
mm->mmap = NULL; \
rb_erase(&high_vma->vm_rb, &mm->mm_rb); \
mm->mmap_cache = NULL; \
mm->map_count--; \
remove_vma(high_vma); \
} \
} while (0)

Definition at line 66 of file mmu_context.h.

#define deactivate_mm (   tsk,
  mm 
)    do { } while (0)

Definition at line 56 of file mmu_context.h.

#define destroy_context (   mm)    do { } while (0)

Definition at line 24 of file mmu_context.h.

#define init_new_context (   tsk,
  mm 
)    0

Definition at line 22 of file mmu_context.h.