Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
livetree.c File Reference
#include "dtc.h"

Go to the source code of this file.

Functions

void add_label (struct label **labels, char *label)
 
void delete_labels (struct label **labels)
 
struct propertybuild_property (char *name, struct data val)
 
struct propertybuild_property_delete (char *name)
 
struct propertychain_property (struct property *first, struct property *list)
 
struct propertyreverse_properties (struct property *first)
 
struct nodebuild_node (struct property *proplist, struct node *children)
 
struct nodebuild_node_delete (void)
 
struct nodename_node (struct node *node, char *name)
 
struct nodemerge_nodes (struct node *old_node, struct node *new_node)
 
struct nodechain_node (struct node *first, struct node *list)
 
void add_property (struct node *node, struct property *prop)
 
void delete_property_by_name (struct node *node, char *name)
 
void delete_property (struct property *prop)
 
void add_child (struct node *parent, struct node *child)
 
void delete_node_by_name (struct node *parent, char *name)
 
void delete_node (struct node *node)
 
struct reserve_infobuild_reserve_entry (uint64_t address, uint64_t size)
 
struct reserve_infochain_reserve_entry (struct reserve_info *first, struct reserve_info *list)
 
struct reserve_infoadd_reserve_entry (struct reserve_info *list, struct reserve_info *new)
 
struct boot_infobuild_boot_info (struct reserve_info *reservelist, struct node *tree, uint32_t boot_cpuid_phys)
 
const charget_unitname (struct node *node)
 
struct propertyget_property (struct node *node, const char *propname)
 
cell_t propval_cell (struct property *prop)
 
struct propertyget_property_by_label (struct node *tree, const char *label, struct node **node)
 
struct markerget_marker_label (struct node *tree, const char *label, struct node **node, struct property **prop)
 
struct nodeget_subnode (struct node *node, const char *nodename)
 
struct nodeget_node_by_path (struct node *tree, const char *path)
 
struct nodeget_node_by_label (struct node *tree, const char *label)
 
struct nodeget_node_by_phandle (struct node *tree, cell_t phandle)
 
struct nodeget_node_by_ref (struct node *tree, const char *ref)
 
cell_t get_node_phandle (struct node *root, struct node *node)
 
uint32_t guess_boot_cpuid (struct node *tree)
 
void sort_tree (struct boot_info *bi)
 

Function Documentation

void add_child ( struct node parent,
struct node child 
)

Definition at line 259 of file livetree.c.

void add_label ( struct label **  labels,
char label 
)

Definition at line 27 of file livetree.c.

void add_property ( struct node node,
struct property prop 
)

Definition at line 227 of file livetree.c.

struct reserve_info* add_reserve_entry ( struct reserve_info list,
struct reserve_info new 
)
read

Definition at line 320 of file livetree.c.

struct boot_info* build_boot_info ( struct reserve_info reservelist,
struct node tree,
uint32_t  boot_cpuid_phys 
)
read

Definition at line 338 of file livetree.c.

struct node* build_node ( struct property proplist,
struct node children 
)
read

Definition at line 100 of file livetree.c.

struct node* build_node_delete ( void  )
read

Definition at line 117 of file livetree.c.

struct property* build_property ( char name,
struct data  val 
)
read

Definition at line 53 of file livetree.c.

struct property* build_property_delete ( char name)
read

Definition at line 65 of file livetree.c.

struct reserve_info* build_reserve_entry ( uint64_t  address,
uint64_t  size 
)
read

Definition at line 299 of file livetree.c.

struct node* chain_node ( struct node first,
struct node list 
)
read

Definition at line 219 of file livetree.c.

struct property* chain_property ( struct property first,
struct property list 
)
read

Definition at line 77 of file livetree.c.

struct reserve_info* chain_reserve_entry ( struct reserve_info first,
struct reserve_info list 
)
read

Definition at line 311 of file livetree.c.

void delete_labels ( struct label **  labels)

Definition at line 45 of file livetree.c.

void delete_node ( struct node node)

Definition at line 286 of file livetree.c.

void delete_node_by_name ( struct node parent,
char name 
)

Definition at line 273 of file livetree.c.

void delete_property ( struct property prop)

Definition at line 253 of file livetree.c.

void delete_property_by_name ( struct node node,
char name 
)

Definition at line 240 of file livetree.c.

struct marker* get_marker_label ( struct node tree,
const char label,
struct node **  node,
struct property **  prop 
)
read

Definition at line 406 of file livetree.c.

struct node* get_node_by_label ( struct node tree,
const char label 
)
read

Definition at line 471 of file livetree.c.

struct node* get_node_by_path ( struct node tree,
const char path 
)
read

Definition at line 445 of file livetree.c.

struct node* get_node_by_phandle ( struct node tree,
cell_t  phandle 
)
read

Definition at line 491 of file livetree.c.

struct node* get_node_by_ref ( struct node tree,
const char ref 
)
read

Definition at line 512 of file livetree.c.

cell_t get_node_phandle ( struct node root,
struct node node 
)

Definition at line 520 of file livetree.c.

struct property* get_property ( struct node node,
const char propname 
)
read

Definition at line 363 of file livetree.c.

struct property* get_property_by_label ( struct node tree,
const char label,
struct node **  node 
)
read

Definition at line 380 of file livetree.c.

struct node* get_subnode ( struct node node,
const char nodename 
)
read

Definition at line 434 of file livetree.c.

const char* get_unitname ( struct node node)

Definition at line 355 of file livetree.c.

uint32_t guess_boot_cpuid ( struct node tree)

Definition at line 551 of file livetree.c.

struct node* merge_nodes ( struct node old_node,
struct node new_node 
)
read

Definition at line 137 of file livetree.c.

struct node* name_node ( struct node node,
char name 
)
read

Definition at line 128 of file livetree.c.

cell_t propval_cell ( struct property prop)

Definition at line 374 of file livetree.c.

struct property* reverse_properties ( struct property first)
read

Definition at line 85 of file livetree.c.

void sort_tree ( struct boot_info bi)

Definition at line 705 of file livetree.c.