Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
node.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/mm.h>
#include <linux/memory.h>
#include <linux/vmstat.h>
#include <linux/node.h>
#include <linux/hugetlb.h>
#include <linux/compaction.h>
#include <linux/cpumask.h>
#include <linux/topology.h>
#include <linux/nodemask.h>
#include <linux/cpu.h>
#include <linux/device.h>
#include <linux/swap.h>
#include <linux/slab.h>

Go to the source code of this file.

Data Structures

struct  node_attr
 

Macros

#define K(x)   ((x) << (PAGE_SHIFT - 10))
 
#define _NODE_ATTR(name, state)   { __ATTR(name, 0444, show_node_state, NULL), state }
 
#define NODE_CALLBACK_PRI   2 /* lower than SLAB */
 

Functions

int register_node (struct node *node, int num, struct node *parent)
 
void unregister_node (struct node *node)
 
int register_cpu_under_node (unsigned int cpu, unsigned int nid)
 
int unregister_cpu_under_node (unsigned int cpu, unsigned int nid)
 
int register_one_node (int nid)
 
void unregister_one_node (int nid)
 
 postcore_initcall (register_node_type)
 

Variables

struct node node_devices [MAX_NUMNODES]
 

Macro Definition Documentation

#define _NODE_ATTR (   name,
  state 
)    { __ATTR(name, 0444, show_node_state, NULL), state }

Definition at line 613 of file node.c.

#define K (   x)    ((x) << (PAGE_SHIFT - 10))

Definition at line 58 of file node.c.

#define NODE_CALLBACK_PRI   2 /* lower than SLAB */

Definition at line 646 of file node.c.

Function Documentation

postcore_initcall ( register_node_type  )
int register_cpu_under_node ( unsigned int  cpu,
unsigned int  nid 
)

Definition at line 314 of file node.c.

int register_node ( struct node node,
int  num,
struct node parent 
)

Definition at line 262 of file node.c.

int register_one_node ( int  nid)

Definition at line 551 of file node.c.

int unregister_cpu_under_node ( unsigned int  cpu,
unsigned int  nid 
)

Definition at line 337 of file node.c.

void unregister_node ( struct node node)

unregister_node - unregister a node device : node going away

Unregisters a node device . All the devices on the node must be unregistered before calling this function.

Definition at line 294 of file node.c.

void unregister_one_node ( int  nid)

Definition at line 582 of file node.c.

Variable Documentation

struct node node_devices[MAX_NUMNODES]

Definition at line 309 of file node.c.