Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions | Variables
balloon.c File Reference
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/errno.h>
#include <linux/module.h>
#include <linux/mm.h>
#include <linux/bootmem.h>
#include <linux/pagemap.h>
#include <linux/highmem.h>
#include <linux/mutex.h>
#include <linux/list.h>
#include <linux/gfp.h>
#include <linux/notifier.h>
#include <linux/memory.h>
#include <linux/memory_hotplug.h>
#include <asm/page.h>
#include <asm/pgalloc.h>
#include <asm/pgtable.h>
#include <asm/tlb.h>
#include <asm/xen/hypervisor.h>
#include <asm/xen/hypercall.h>
#include <xen/xen.h>
#include <xen/interface/xen.h>
#include <xen/interface/memory.h>
#include <xen/balloon.h>
#include <xen/features.h>
#include <xen/page.h>

Go to the source code of this file.

Macros

#define inc_totalhigh_pages()   do {} while (0)
 
#define dec_totalhigh_pages()   do {} while (0)
 
#define GFP_BALLOON   (GFP_HIGHUSER | __GFP_NOWARN | __GFP_NORETRY | __GFP_NOMEMALLOC)
 

Enumerations

enum  bp_state { BP_DONE, BP_EAGAIN, BP_ECANCELED }
 

Functions

 EXPORT_SYMBOL_GPL (balloon_stats)
 
void balloon_set_new_target (unsigned long target)
 
 EXPORT_SYMBOL_GPL (balloon_set_new_target)
 
int alloc_xenballooned_pages (int nr_pages, struct page **pages, bool highmem)
 
 EXPORT_SYMBOL (alloc_xenballooned_pages)
 
void free_xenballooned_pages (int nr_pages, struct page **pages)
 
 EXPORT_SYMBOL (free_xenballooned_pages)
 
 subsys_initcall (balloon_init)
 
 MODULE_LICENSE ("GPL")
 

Variables

struct balloon_stats balloon_stats
 

Macro Definition Documentation

#define dec_totalhigh_pages ( )    do {} while (0)

Definition at line 97 of file balloon.c.

#define GFP_BALLOON   (GFP_HIGHUSER | __GFP_NOWARN | __GFP_NORETRY | __GFP_NOMEMALLOC)

Definition at line 109 of file balloon.c.

#define inc_totalhigh_pages ( )    do {} while (0)

Definition at line 96 of file balloon.c.

Enumeration Type Documentation

enum bp_state
Enumerator:
BP_DONE 
BP_EAGAIN 
BP_ECANCELED 

Definition at line 77 of file balloon.c.

Function Documentation

int alloc_xenballooned_pages ( int  nr_pages,
struct page **  pages,
bool  highmem 
)

alloc_xenballooned_pages - get pages that have been ballooned out : Number of pages to get : pages returned : allow highmem pages

Returns
0 on success, error otherwise

Definition at line 506 of file balloon.c.

void balloon_set_new_target ( unsigned long  target)

Definition at line 491 of file balloon.c.

EXPORT_SYMBOL ( alloc_xenballooned_pages  )
EXPORT_SYMBOL ( free_xenballooned_pages  )
EXPORT_SYMBOL_GPL ( balloon_stats  )
EXPORT_SYMBOL_GPL ( balloon_set_new_target  )
void free_xenballooned_pages ( int  nr_pages,
struct page **  pages 
)

free_xenballooned_pages - return pages retrieved with get_ballooned_pages : Number of pages : pages to return

Definition at line 542 of file balloon.c.

MODULE_LICENSE ( "GPL"  )
subsys_initcall ( balloon_init  )

Variable Documentation

Definition at line 86 of file balloon.c.