Linux设备模型之platform(4)

                                                                                                                           //为iomem_resource,否则如果类型为
                                                   else if (resource_type(r) == IORESOURCE_IO)     //IORESOURCE_IO,则把父节点设置为

                                                                p = &ioport_resource;                            //IORESOURCE_IO,由此我们可以看出
                                }                                                                                          //内核数据之间的条理性之强
                               if (p && insert_resource(p, r)) {                       //将资源插入父节点,也就是出现在父节点目录层次下
                                                  printk(KERN_ERR"%s: failed to claim resource %d/n",
                                                            dev_name(&pdev->dev), i);

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/22707.html