. . . lib/fdtdec.c

1    char *fdtdec_get_config_string(const void *blob, const char *prop_name)
2    {
3            const char *nodep;
4            int nodeoffset;
5            int len;
6    
7            debug("%s: %s\n", __func__, prop_name);
8            nodeoffset = fdt_path_offset(blob, "/config");
9            if (nodeoffset < 0)
10                    return NULL;
11    
12            nodep = fdt_getprop(blob, nodeoffset, prop_name, &len);
13            if (!nodep)
14                    return NULL;
15    
16            return (char *)nodep;
17    }

. . .

results matching ""

    No results matching ""