led總線驅動

1,bus struct bus_type結構體內容: 匹配函數:match 使用:     struct bus_type my_bus_type{ .match=my_match, } 匹配:!strncmp(dev->kobj.name,drv->name,strlen(drv->name)); 函數返回1,證明匹配成功。   註冊總線bus_register(」自己定義的結構體「); 成功
相關文章
相關標籤/搜索