Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
sn_hwperf.c File Reference
#include <linux/fs.h>
#include <linux/slab.h>
#include <linux/export.h>
#include <linux/vmalloc.h>
#include <linux/seq_file.h>
#include <linux/miscdevice.h>
#include <linux/utsname.h>
#include <linux/cpumask.h>
#include <linux/nodemask.h>
#include <linux/smp.h>
#include <linux/mutex.h>
#include <asm/processor.h>
#include <asm/topology.h>
#include <asm/uaccess.h>
#include <asm/sal.h>
#include <asm/sn/io.h>
#include <asm/sn/sn_sal.h>
#include <asm/sn/module.h>
#include <asm/sn/geo.h>
#include <asm/sn/sn2/sn_hwperf.h>
#include <asm/sn/addrs.h>

Go to the source code of this file.

Data Structures

struct  sn_hwperf_op_info
 

Macros

#define cnode_possible(n)   ((n) < num_cnodes)
 

Functions

int sn_topology_open (struct inode *inode, struct file *file)
 
int sn_topology_release (struct inode *inode, struct file *file)
 
int sn_hwperf_get_nearest_node (cnodeid_t node, cnodeid_t *near_mem_node, cnodeid_t *near_cpu_node)
 
 device_initcall (sn_hwperf_misc_register_init)
 
 EXPORT_SYMBOL (sn_hwperf_get_nearest_node)
 

Macro Definition Documentation

#define cnode_possible (   n)    ((n) < num_cnodes)

Definition at line 55 of file sn_hwperf.c.

Function Documentation

device_initcall ( sn_hwperf_misc_register_init  )
EXPORT_SYMBOL ( sn_hwperf_get_nearest_node  )
int sn_hwperf_get_nearest_node ( cnodeid_t  node,
cnodeid_t near_mem_node,
cnodeid_t near_cpu_node 
)

Definition at line 964 of file sn_hwperf.c.

int sn_topology_open ( struct inode inode,
struct file file 
)

Definition at line 940 of file sn_hwperf.c.

int sn_topology_release ( struct inode inode,
struct file file 
)

Definition at line 956 of file sn_hwperf.c.