Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
mdesc.h File Reference
#include <linux/types.h>
#include <linux/cpumask.h>
#include <asm/prom.h>

Go to the source code of this file.

Data Structures

struct  mdesc_notifier_client


#define MDESC_NODE_NULL   (~(u64)0)
#define mdesc_for_each_node_by_name(__hdl, __node, __name)
#define MDESC_ARC_TYPE_FWD   "fwd"
#define MDESC_ARC_TYPE_BACK   "back"
#define mdesc_for_each_arc(__arc, __hdl, __node, __type)


struct mdesc_handlemdesc_grab (void)
void mdesc_release (struct mdesc_handle *)
u64 mdesc_node_by_name (struct mdesc_handle *handle, u64 from_node, const char *name)
const voidmdesc_get_property (struct mdesc_handle *handle, u64 node, const char *name, int *lenp)
const charmdesc_node_name (struct mdesc_handle *hp, u64 node)
u64 mdesc_next_arc (struct mdesc_handle *handle, u64 from, const char *arc_type)
u64 mdesc_arc_target (struct mdesc_handle *hp, u64 arc)
void mdesc_update (void)
void mdesc_register_notifier (struct mdesc_notifier_client *client)
void mdesc_fill_in_cpu_data (cpumask_t *mask)
void mdesc_populate_present_mask (cpumask_t *mask)
void mdesc_get_page_sizes (cpumask_t *mask, unsigned long *pgsz_mask)
void sun4v_mdesc_init (void)

Macro Definition Documentation

#define MDESC_ARC_TYPE_BACK   "back"

Definition at line 51 of file mdesc.h.

#define MDESC_ARC_TYPE_FWD   "fwd"

Definition at line 50 of file mdesc.h.

#define mdesc_for_each_arc (   __arc,
for (__arc = mdesc_next_arc(__hdl, __node, __type); \
(__arc) != MDESC_NODE_NULL; \
__arc = mdesc_next_arc(__hdl, __arc, __type))

Definition at line 55 of file mdesc.h.

#define mdesc_for_each_node_by_name (   __hdl,
for (__node = mdesc_node_by_name(__hdl, MDESC_NODE_NULL, __name); \
(__node) != MDESC_NODE_NULL; \
__node = mdesc_node_by_name(__hdl, __node, __name))

Definition at line 22 of file mdesc.h.

#define MDESC_NODE_NULL   (~(u64)0)

Definition at line 18 of file mdesc.h.

Function Documentation

u64 mdesc_arc_target ( struct mdesc_handle hp,
u64  arc 

Definition at line 486 of file mdesc.c.

void mdesc_fill_in_cpu_data ( cpumask_t mask)

Definition at line 893 of file mdesc.c.

void mdesc_get_page_sizes ( cpumask_t mask,
unsigned long pgsz_mask 

Definition at line 838 of file mdesc.c.

const void* mdesc_get_property ( struct mdesc_handle handle,
u64  node,
const char name,
int lenp 

Definition at line 414 of file mdesc.c.

struct mdesc_handle* mdesc_grab ( void  )

Definition at line 188 of file mdesc.c.

u64 mdesc_next_arc ( struct mdesc_handle handle,
u64  from,
const char arc_type 

Definition at line 460 of file mdesc.c.

u64 mdesc_node_by_name ( struct mdesc_handle handle,
u64  from_node,
const char name 

Definition at line 385 of file mdesc.c.

const char* mdesc_node_name ( struct mdesc_handle hp,
u64  node 

Definition at line 496 of file mdesc.c.

void mdesc_populate_present_mask ( cpumask_t mask)

Definition at line 811 of file mdesc.c.

void mdesc_register_notifier ( struct mdesc_notifier_client client)

Definition at line 219 of file mdesc.c.

void mdesc_release ( struct mdesc_handle )

Definition at line 203 of file mdesc.c.

void mdesc_update ( void  )

Definition at line 327 of file mdesc.c.

void sun4v_mdesc_init ( void  )

Definition at line 951 of file mdesc.c.