MCPcopy Create free account
hub / github.com/F-Stack/f-stack / fdt_check_node_offset_

Function fdt_check_node_offset_

freebsd/contrib/libfdt/fdt.c:147–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147int fdt_check_node_offset_(const void *fdt, int offset)
148{
149 if ((offset < 0) || (offset % FDT_TAGSIZE)
150 || (fdt_next_tag(fdt, offset, &offset) != FDT_BEGIN_NODE))
151 return -FDT_ERR_BADOFFSET;
152
153 return offset;
154}
155
156int fdt_check_prop_offset_(const void *fdt, int offset)
157{

Callers 4

fdt_get_nameFunction · 0.85
fdt_add_property_Function · 0.85
fdt_next_nodeFunction · 0.85

Calls 1

fdt_next_tagFunction · 0.85

Tested by

no test coverage detected