Skip to main content

fdt_next_subnode

Function fdt_next_subnode 

Source
pub unsafe extern "C" fn fdt_next_subnode(
    fdt: *const c_void,
    offset: c_int,
) -> c_int
Expand description

fdt_next_subnode() - get offset of next direct subnode @fdt: FDT blob @offset: Offset of previous subnode

After first calling fdt_first_subnode(), call this function repeatedly to get direct subnodes of a parent node.

returns: offset of next subnode, or -FDT_ERR_NOTFOUND if there are no more subnodes