summaryrefslogtreecommitdiff
path: root/libfdt/libfdt.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2018-03-18 00:12:12 +1100
committerDavid Gibson <david@gibson.dropbear.id.au>2018-04-11 16:49:38 +1000
commit9d9c795cd721bd11f4a8cc039e5553c83bd66fdf (patch)
tree31c7ee4f324a2bf49f8dc038a4c6474d4768577d /libfdt/libfdt.h
parent27a63cf0742fa75fc51eb6b906a135440a693642 (diff)
downloaddevice-tree-compiler-9d9c795cd721bd11f4a8cc039e5553c83bd66fdf.tar.gz
libfdt: Add fdt_check_full() functionsafety
This new function implements a complete and thorough check of an fdt blob's structure. Given a buffer containing an fdt, it should return 0 only if the fdt within is structurally sound in all regards. It doesn't check anything about the blob's contents (i.e. the actual values of the nodes and properties), of course. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'libfdt/libfdt.h')
-rw-r--r--libfdt/libfdt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libfdt/libfdt.h b/libfdt/libfdt.h
index 9938fb8..f044298 100644
--- a/libfdt/libfdt.h
+++ b/libfdt/libfdt.h
@@ -295,6 +295,8 @@ int fdt_move(const void *fdt, void *buf, int bufsize);
/* Read-only functions */
/**********************************************************************/
+int fdt_check_full(const void *fdt, size_t bufsize);
+
/**
* fdt_get_string - retrieve a string from the strings block of a device tree
* @fdt: pointer to the device tree blob