`struct device_node of_find_node_by_name(struct device_node from, const char name);` 其中,`from`是起始节点,可以是根节点(&root)或者其它节点;`name`是需要查找的节点名。该函数返回的是一个指向找到的节点的指针(structdevice_node ),如果找不到则返回NULL。要注意的是,该函数的查找范围是在`from`及...
printk(KERN_INFO"PowerMac SMP probe found %d cpus\n", ncpus);/* Nothing more to do if less than 2 of them */if(ncpus <=1)return1;/* Look for the clock chip */for(cc =NULL; (cc =of_find_node_by_name(cc,"i2c-hwclock")) !=NULL;) {structdevice_node*p=of_get_parent(cc)...