Expand description
This module includes functions and structures that deal with the parsing and
execution of Device Tree /include/
statements as well as the mapping from
the global buffer returned by include_files
back to the original file.
Structs§
- Include
Bounds - Stores the information to map a section of the buffer returned by
include_files
to the original file. Often does not map a whole file, but only a part starting at atchild_start
. The mapped section starts atstart()
bytes in the global buffer and continues forlen()
bytes.len()
does not indicate the length in bytes that theIncludeBounds
maps to in the original file as if the file has been processed by the C preprocessor whitespace may have been removed.
Enums§
- Bounds
Error - Defines errors from manipulating
IncludeBounds
. - Include
Error - Defines various errors that may happen in the include process.
- Include
Method - Specifies the method used to include a file.
Functions§
- get_
bounds_ containing_ offset - Performs a binary search on the collection of bounds and returns the one containing the offset.
- include_
files - Parses
/include/
statements in the file returning a buffer with all files included.