of_match_device函数一般用于设备树驱动程序中,用来获取与设备节点相关联的设备驱动程序。 of_match_device函数是Linux内核中的一个函数,用于设备树中设备节点和设备驱动程序之间的匹配。这个函数的作用是通过指定的设备树节点和设备驱动程序的匹配信息进行匹配,如果匹配成功,就返回相应的设备驱动程序。 of_match_device函数...
staticintfs_enet_probe(struct platform_device *ofdev){conststructof_device_id*match;structnet_device*ndev;structfs_enet_private*fep;structfs_platform_info*fpi;constu32 *data;constu8 *mac_addr;constchar*phy_connection_type;intprivsize, len, ret = -ENODEV; match =of_match_device(fs_enet_m...