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

Function dtb_node_write_string

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

Source from the content-addressed store, hash-verified

422}
423
424int dtb_node_write_string(const struct dtb_node *node, const char *propname, const char *value)
425{
426 if (!dtb_node_active())
427 return -ENOSYS;
428
429 RT_ASSERT(dtb_node_valid(node));
430
431 debug("%s: %s = %s", __func__, propname, value);
432
433 return dtb_node_write_prop(node, propname, strlen(value) + 1, value);
434}
435
436int dtb_node_set_enabled(const struct dtb_node *node, rt_bool_t value)
437{

Callers 1

dtb_node_set_enabledFunction · 0.85

Calls 3

dtb_node_activeFunction · 0.85
dtb_node_validFunction · 0.85
dtb_node_write_propFunction · 0.85

Tested by

no test coverage detected