当前位置:网站首页>设备树的树形结构到底是怎样体现的?
设备树的树形结构到底是怎样体现的?
2022-08-01 01:18:00 【正在起飞的蜗牛】
1、dts示例源码
/ {
model = "Hisilicon HI3516DV300 DEMO Board";
compatible = "hisilicon,hi3516dv300";
memory {
device_type = "memory";
reg = <0x82000000 0x20000000>;
};
chosen {
bootargs = "console=ttySAC2,115200n8 root=/dev/nfs nfsroot=192.168.0.101:/home/run/work/rootfs/";
};
cpus {
#address-cells = <1>;
#size-cells = <0>;
enable-method = "hisilicon,hi3516dv300";
[email protected]0 {
device_type = "cpu";
compatible = "arm,cortex-a7";
clock-frequency = <HI3516DV300_FIXED_1000M>;
reg = <0>;
};
[email protected]1 {
device_type = "cpu";
compatible = "arm,cortex-a7";
clock-frequency = <HI3516DV300_FIXED_1000M>;
reg = <1>;
};
};
};
2、转换成树形结构

(1)"/"是根节点,整个数据的组织方式和linux中的文件夹管理方式类型,都是树形结构体;
(2)上面只是从宏观上表示设备树的数据组织形式,更多细节参考博客:《linux内核启动阶段对设备树的解析》;
边栏推荐
- Compose principle - the view and the principle of two-way data binding
- You need to know the TCP wave four times
- GDB 源码分析系列文章五:动态库延迟断点实现机制
- MYSQL two-phase commit
- Notes on how to use zeno
- 网关gateway跨域
- [Microservice] Distributed Transaction Solution - Seata
- Automated machine learning pycaret: PyCaret Basic Auto Classification LightGBM
- By Value or By Reference
- RTL8762DK PWM (seven)
猜你喜欢

MYSQL索引解析

RTL8762DK WDG(六)

In 2022, the latest eight Chongqing construction members (electrical construction workers) simulation question bank and answers

pycaret source code analysis: download dataset\Lib\site-packages\pycaret\datasets.py

机器学习应该如何入门?

MYSQL Classic Interview Questions

RTL8762DK RTC(五)

Introduction to the five data types of Redis

Matlab/ArcGIS processing GPM global monthly precipitation data
![ROS2 series of knowledge (4): understand the concept of [service]](/img/14/8de92a89d9c4b6476ac37408bc7788.png)
ROS2 series of knowledge (4): understand the concept of [service]
随机推荐
谷歌『云开发者速查表』;清华3D人体数据集;商汤『通用视觉框架』公开课;Web3极简入门指南;高效深度学习免费书;前沿论文 | ShowMeAI资讯日报
机器学习应该如何入门?
两院院士直言:不要迷信院士
MYSQL transactions
软考高级系统架构设计师系列之:系统开发基础知识
MYSQL-Batch insert data
Detailed explanation of TCP protocol
MYSQL master-slave replication
从零造键盘的键盘超级喜欢,IT人最爱
Item 36: Specify std::launch::async if asynchronicity is essential.
Design the message queue storage MySQL form of message data
Kyoto University: Masaki Waga | Dynamic Masking for Reinforcement Learning in Black Box Environments
【Cryptography/Cryptanalysis】Cryptanalysis method based on TMTO
RTL8762DK Lighting/LED (3)
Daily practice of LeetCode - Circular linked list question (interview four consecutive questions)
自动化机器学习pycaret: PyCaret Basic Auto Classification LightGBM
MYSQL-批量插入数据
Carefully summarize thirteen suggestions to help you create more suitable MySQL indexes
By Value or By Reference
Luogu P3373: Segment tree