当前位置:网站首页>设备树的树形结构到底是怎样体现的?
设备树的树形结构到底是怎样体现的?
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内核启动阶段对设备树的解析》;
边栏推荐
- /usr/sbin/vmware-authdlauncher: error while loading shared libraries: libssl.so.1.0.2*解决办法
- RTL8762DK UART (two)
- RTL8762DK 使用DebugAnalyzer(四)
- Beijing suddenly announced that yuan universe big news
- 从零造键盘的键盘超级喜欢,IT人最爱
- 你需要知道的 TCP 四次挥手
- leetcode:1648. 销售价值减少的颜色球【二分找边界】
- WebApi hits an Attribute to handle exceptions uniformly
- What practical projects can machine learning beginners learn?
- Rasa 3.x Learning Series - Using Lookup Tables to Improve Entity Extraction
猜你喜欢
随机推荐
MYSQL transactions
蓝图:杨辉三角排列
ROS2 series of knowledge (4): understand the concept of [service]
Application of integrated stepper motor in UAV automatic airport
JS时间戳的意义是什么?知道sql会考虑加时间戳,JS的时间戳用于什么场景?
date command
Compose原理-视图和数据双向绑定的原理
VPGNet
RTL8762DK RTC (5)
How to get started with YOLO?How to implement your own training set?
mySql data view
Classes and Objects: Above
数据中台建设(七):数据资产管理
July Bootcamp (Day 31) - Status Compression
软考高级系统架构设计师系列之:信息系统基础知识
Basic implementation of vector
Beijing suddenly announced that yuan universe big news
从零造键盘的键盘超级喜欢,IT人最爱
WeChat applet page syntax
Key Points Estimation and Point Instance