[英]linux kernel-device tree-pass data from parent to child
我對將某些數據(在運行時動態創建)從父節點傳遞到設備樹中的子節點感興趣。 例如,我在設備樹中具有以下條目:
parent_node {
a-string-property = "A string";
a-string-list-property = "first string", "second string";
a-byte-data-property = [0x01 0x23 0x34 0x56];
child-node1 {
first-child-property;
second-child-property = <1>;
a-string-property = "Hello, world";
};
child-node2 {
some_data ;
};
};
據我所知,您無法在運行時創建/更新設備樹節點的屬性(對嗎?)。
那么,是否存在某種機制可以在父節點和子節點之間傳遞數據(可能通過struct bus_type
, struct device
或struct device_driver
)?
數據傳遞的最終目的是為設備的內存映射(子節點)的地址轉換提供偏移量。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.