1.以下是针对于设备树的Of_操作函数(常用的)
设备以节点的形式“挂“到设备树上,Linux内核使用device_node结构体来描述一个节点,结构体定义在include/linux/of.h
1.1 与查找节点有关的函数 of_find_node_by_name函数
1.2 Of_find_node_by_type函数
1.3 of_find_compatible_node函数
1.4 of_find_matching_node_and_match函数
1.5 of_find_node_by_path函数
1.6 of_get_parent函数
1.7 of_get_next_child函数
- 提取属性值的OF函数
2.1 Property表示属性 在文件include/linux/of.h中
2.2 of_find_property函数
2.3 of_property_count_elems_of_size函数
2.4 of_property_read_u32_index函数
2.5 Of_property_read_u8函数
2.6 of_property_read_string函数
2.7 of_n_addr_cells函数
2.8 of_n_size_cells函数
3 其他常见的OF函数
Of_device_is_compatible函数
Of_get_address函数
Of_translate_address函数
Of_address_to_resource函数
Of_iomap函数