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

Function dtb_node_valid

components/legacy/fdt/inc/dtb_node.h:323–328  ·  view source on GitHub ↗

* ofnode_valid() - check if an ofnode is valid * * @return true if the reference contains a valid ofnode, RT_FALSE if it is NULL */

Source from the content-addressed store, hash-verified

321 * @return true if the reference contains a valid ofnode, RT_FALSE if it is NULL
322 */
323static inline rt_bool_t dtb_node_valid(const struct dtb_node *node)
324{
325 if (dtb_node_active())
326 return node != NULL;
327 return RT_FALSE;
328}
329
330/*dtb_base.c */
331rt_bool_t dtb_node_read_bool(const struct dtb_node *node, const char *propname);

Callers 11

dtb_node_read_boolFunction · 0.85
dtb_node_read_propFunction · 0.85
dtb_node_find_subnodeFunction · 0.85
dtb_node_first_subnodeFunction · 0.85
dtb_node_next_subnodeFunction · 0.85
dtb_node_get_nameFunction · 0.85
dtb_node_write_stringFunction · 0.85
dtb_node_set_enabledFunction · 0.85

Calls 1

dtb_node_activeFunction · 0.85

Tested by

no test coverage detected