Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
fdt_wip.c File Reference
#include "libfdt_env.h"
#include <fdt.h>
#include <libfdt.h>
#include "libfdt_internal.h"

Go to the source code of this file.

Functions

int fdt_setprop_inplace (void *fdt, int nodeoffset, const char *name, const void *val, int len)
 
int fdt_nop_property (void *fdt, int nodeoffset, const char *name)
 
int _fdt_node_end_offset (void *fdt, int offset)
 
int fdt_nop_node (void *fdt, int nodeoffset)
 

Function Documentation

int _fdt_node_end_offset ( void fdt,
int  offset 
)

Definition at line 97 of file fdt_wip.c.

int fdt_nop_node ( void fdt,
int  nodeoffset 
)

fdt_nop_node - replace a node (subtree) with nop tags : pointer to the device tree blob : offset of the node to nop

fdt_nop_node() will replace a given node's representation in the blob, including all its subnodes, if any, with FDT_NOP tags, effectively removing it from the tree.

This function will alter only the bytes in the blob which contain the node and its properties and subnodes, and will not alter or move any other part of the tree.

returns: 0, on success -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag -FDT_ERR_BADMAGIC, -FDT_ERR_BADVERSION, -FDT_ERR_BADSTATE, -FDT_ERR_BADSTRUCTURE, -FDT_ERR_TRUNCATED, standard meanings

Definition at line 107 of file fdt_wip.c.

int fdt_nop_property ( void fdt,
int  nodeoffset,
const char name 
)

Definition at line 83 of file fdt_wip.c.

int fdt_setprop_inplace ( void fdt,
int  nodeoffset,
const char name,
const void val,
int  len 
)

Definition at line 58 of file fdt_wip.c.