MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / dtb_node_read_bool

Function dtb_node_read_bool

components/legacy/fdt/src/dtb_base.c:84–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84rt_bool_t dtb_node_read_bool(const struct dtb_node *node, const char *propname)
85{
86 const void *prop;
87
88 RT_ASSERT(dtb_node_valid(node));
89 debug("%s: %s: ", __func__, propname);
90
91 prop = dtb_node_get_property(node, propname, NULL);
92
93 debug("%s\n", prop ? "true" : "false");
94
95 return prop ? RT_TRUE : RT_FALSE;
96}
97
98const void *dtb_node_read_prop(const struct dtb_node *node, const char *propname, int *sizep)
99{

Callers

nothing calls this directly

Calls 2

dtb_node_validFunction · 0.85
dtb_node_get_propertyFunction · 0.85

Tested by

no test coverage detected