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

Function fdt_node_check_compatible

freebsd/contrib/libfdt/fdt_ro.c:737–748  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

735}
736
737int fdt_node_check_compatible(const void *fdt, int nodeoffset,
738 const char *compatible)
739{
740 const void *prop;
741 int len;
742
743 prop = fdt_getprop(fdt, nodeoffset, "compatible", &len);
744 if (!prop)
745 return len;
746
747 return !fdt_stringlist_contains(prop, len, compatible);
748}
749
750int fdt_node_offset_by_compatible(const void *fdt, int startoffset,
751 const char *compatible)

Callers 5

__get_phy_info_from_dtFunction · 0.85
max10_match_compatibleFunction · 0.85
max10_staging_area_initFunction · 0.85
max10_secure_hw_initFunction · 0.85

Calls 2

fdt_getpropFunction · 0.85
fdt_stringlist_containsFunction · 0.85

Tested by

no test coverage detected