2bc5b66d7f
The fdt_get_max_phandle() function has some shortcomings. On one hand it returns just a uint32_t which means to check for the "negative" error code a caller has to explicitly check against the error code (uint32_t)-1. In addition, the -1 is the only error code that can be returned, so a caller cannot tell the difference between the various failures. Fix this by adding a new fdt_find_max_phandle() function that returns an error code on failure and 0 on success, just like other APIs, and stores the maximum phandle value in an output argument on success. This also refactors fdt_get_max_phandle() to use the new function. Add a note pointing out that the new fdt_find_max_phandle() function should be preferred over fdt_get_max_phandle(). Signed-off-by: Thierry Reding <treding@nvidia.com> Message-Id: <20190326153302.17109-1-thierry.reding@gmail.com> [dwg: Reword for some inaccuracies in the commit message] Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
76 lines
1.5 KiB
Text
76 lines
1.5 KiB
Text
LIBFDT_1.2 {
|
|
global:
|
|
fdt_next_node;
|
|
fdt_check_header;
|
|
fdt_move;
|
|
fdt_string;
|
|
fdt_num_mem_rsv;
|
|
fdt_get_mem_rsv;
|
|
fdt_subnode_offset_namelen;
|
|
fdt_subnode_offset;
|
|
fdt_path_offset_namelen;
|
|
fdt_path_offset;
|
|
fdt_get_name;
|
|
fdt_get_property_namelen;
|
|
fdt_get_property;
|
|
fdt_getprop_namelen;
|
|
fdt_getprop;
|
|
fdt_get_phandle;
|
|
fdt_get_alias_namelen;
|
|
fdt_get_alias;
|
|
fdt_get_path;
|
|
fdt_supernode_atdepth_offset;
|
|
fdt_node_depth;
|
|
fdt_parent_offset;
|
|
fdt_node_offset_by_prop_value;
|
|
fdt_node_offset_by_phandle;
|
|
fdt_node_check_compatible;
|
|
fdt_node_offset_by_compatible;
|
|
fdt_setprop_inplace;
|
|
fdt_nop_property;
|
|
fdt_nop_node;
|
|
fdt_create;
|
|
fdt_add_reservemap_entry;
|
|
fdt_finish_reservemap;
|
|
fdt_begin_node;
|
|
fdt_property;
|
|
fdt_end_node;
|
|
fdt_finish;
|
|
fdt_open_into;
|
|
fdt_pack;
|
|
fdt_add_mem_rsv;
|
|
fdt_del_mem_rsv;
|
|
fdt_set_name;
|
|
fdt_setprop;
|
|
fdt_delprop;
|
|
fdt_add_subnode_namelen;
|
|
fdt_add_subnode;
|
|
fdt_del_node;
|
|
fdt_strerror;
|
|
fdt_offset_ptr;
|
|
fdt_next_tag;
|
|
fdt_appendprop;
|
|
fdt_create_empty_tree;
|
|
fdt_first_property_offset;
|
|
fdt_get_property_by_offset;
|
|
fdt_getprop_by_offset;
|
|
fdt_next_property_offset;
|
|
fdt_first_subnode;
|
|
fdt_next_subnode;
|
|
fdt_address_cells;
|
|
fdt_size_cells;
|
|
fdt_stringlist_contains;
|
|
fdt_stringlist_count;
|
|
fdt_stringlist_search;
|
|
fdt_stringlist_get;
|
|
fdt_resize;
|
|
fdt_overlay_apply;
|
|
fdt_get_string;
|
|
fdt_find_max_phandle;
|
|
fdt_get_max_phandle;
|
|
fdt_check_full;
|
|
fdt_setprop_placeholder;
|
|
fdt_property_placeholder;
|
|
local:
|
|
*;
|
|
};
|