Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
topology.c File Reference
#include <linux/cpu.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/node.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/bootmem.h>
#include <linux/nodemask.h>
#include <linux/notifier.h>
#include <linux/export.h>
#include <asm/mmzone.h>
#include <asm/numa.h>
#include <asm/cpu.h>

Go to the source code of this file.

Data Structures

struct  cache_info
 
struct  cpu_cache_info
 
struct  cache_attr
 

Macros

#define LEAF_KOBJECT_PTR(x, y)   (&all_cpu_cache_info[x].cache_leaves[y])
 
#define define_one_ro(_name)
 
#define to_object(k)   container_of(k, struct cache_info, kobj)
 
#define to_attr(a)   container_of(a, struct cache_attr, attr)
 

Functions

void arch_fix_phys_package_id (int num, u32 slot)
 
 EXPORT_SYMBOL_GPL (arch_fix_phys_package_id)
 
 subsys_initcall (topology_init)
 
 define_one_ro (level)
 
 define_one_ro (type)
 
 define_one_ro (coherency_line_size)
 
 define_one_ro (ways_of_associativity)
 
 define_one_ro (size)
 
 define_one_ro (number_of_sets)
 
 define_one_ro (shared_cpu_map)
 
 define_one_ro (attributes)
 
 device_initcall (cache_sysfs_init)
 

Variables

struct cache_info __attribute__
 

Macro Definition Documentation

#define define_one_ro (   _name)
Value:
static struct cache_attr _name = \
__ATTR(_name, 0444, show_##_name, NULL)

Definition at line 250 of file topology.c.

#define LEAF_KOBJECT_PTR (   x,
  y 
)    (&all_cpu_cache_info[x].cache_leaves[y])

Definition at line 139 of file topology.c.

#define to_attr (   a)    container_of(a, struct cache_attr, attr)

Definition at line 276 of file topology.c.

#define to_object (   k)    container_of(k, struct cache_info, kobj)

Definition at line 275 of file topology.c.

Function Documentation

void arch_fix_phys_package_id ( int  num,
u32  slot 
)

Definition at line 32 of file topology.c.

define_one_ro ( level  )
define_one_ro ( type  )
define_one_ro ( coherency_line_size  )
define_one_ro ( ways_of_associativity  )
define_one_ro ( size  )
define_one_ro ( number_of_sets  )
define_one_ro ( shared_cpu_map  )
define_one_ro ( attributes  )
device_initcall ( cache_sysfs_init  )
EXPORT_SYMBOL_GPL ( arch_fix_phys_package_id  )
subsys_initcall ( topology_init  )

Variable Documentation