Module device_tree_source::include [] [src]

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

IncludeBounds

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 at child_start. The mapped section starts at start() bytes in the global buffer and continues for len() bytes. len() does not indicate the length in bytes that the IncludeBounds maps to in the original file as if the file has been processed by the C preprocessor whitespace may have been removed.

Enums

BoundsError

Defines errors from manipulating IncludeBounds.

IncludeError

Defines various errors that may happen in the include process.

IncludeMethod

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.