Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
mmu_context.h File Reference
#include <asm/desc.h>
#include <linux/atomic.h>
#include <asm/pgalloc.h>
#include <asm/tlbflush.h>
#include <asm/paravirt.h>
#include <asm-generic/mm_hooks.h>

Go to the source code of this file.

Macros

#define activate_mm(prev, next)
 
#define deactivate_mm(tsk, mm)
 

Functions

int init_new_context (struct task_struct *tsk, struct mm_struct *mm)
 
void destroy_context (struct mm_struct *mm)
 

Macro Definition Documentation

#define activate_mm (   prev,
  next 
)
Value:
do { \
paravirt_activate_mm((prev), (next)); \
switch_mm((prev), (next), NULL); \
} while (0);

Definition at line 74 of file mmu_context.h.

#define deactivate_mm (   tsk,
  mm 
)
Value:
do { \
load_gs_index(0); \
loadsegment(fs, 0); \
} while (0)

Definition at line 86 of file mmu_context.h.

Function Documentation

void destroy_context ( struct mm_struct mm)
inline

Definition at line 242 of file mmu_context.h.

int init_new_context ( struct task_struct tsk,
struct mm_struct mm 
)

Definition at line 143 of file tlb.c.