Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
memory_hotplug.c File Reference
#include <linux/stddef.h>
#include <linux/mm.h>
#include <linux/swap.h>
#include <linux/interrupt.h>
#include <linux/pagemap.h>
#include <linux/bootmem.h>
#include <linux/compiler.h>
#include <linux/export.h>
#include <linux/pagevec.h>
#include <linux/writeback.h>
#include <linux/slab.h>
#include <linux/sysctl.h>
#include <linux/cpu.h>
#include <linux/memory.h>
#include <linux/memory_hotplug.h>
#include <linux/highmem.h>
#include <linux/vmalloc.h>
#include <linux/ioport.h>
#include <linux/delay.h>
#include <linux/migrate.h>
#include <linux/page-isolation.h>
#include <linux/pfn.h>
#include <linux/suspend.h>
#include <linux/mm_inline.h>
#include <linux/firmware-map.h>
#include <asm/tlbflush.h>
#include "internal.h"

Go to the source code of this file.

Functions

 DEFINE_MUTEX (mem_hotplug_mutex)
 
void lock_memory_hotplug (void)
 
void unlock_memory_hotplug (void)
 
int mem_online_node (int nid)
 
int __ref add_memory (int nid, u64 start, u64 size)
 
 EXPORT_SYMBOL_GPL (add_memory)
 
int offline_pages (unsigned long start_pfn, unsigned long nr_pages)
 
int remove_memory (u64 start, u64 size)
 
 EXPORT_SYMBOL_GPL (remove_memory)
 

Function Documentation

int __ref add_memory ( int  nid,
u64  start,
u64  size 
)

Definition at line 608 of file memory_hotplug.c.

DEFINE_MUTEX ( mem_hotplug_mutex  )
EXPORT_SYMBOL_GPL ( add_memory  )
EXPORT_SYMBOL_GPL ( remove_memory  )
void lock_memory_hotplug ( void  )

Definition at line 50 of file memory_hotplug.c.

int mem_online_node ( int  nid)

Definition at line 587 of file memory_hotplug.c.

int offline_pages ( unsigned long  start_pfn,
unsigned long  nr_pages 
)

Definition at line 1048 of file memory_hotplug.c.

int remove_memory ( u64  start,
u64  size 
)

Definition at line 1052 of file memory_hotplug.c.

void unlock_memory_hotplug ( void  )

Definition at line 58 of file memory_hotplug.c.