Linux???豸???????
???????????? ???????[ 2016/1/29 10:28:01 ] ?????????????? Linux
????????????????
????1. ??????(Platform bus)??linux2.6????????????????????????????????????????????豸???????????????????????????????????
????2.
???????????豸
????1. ???豸???structplatform_device??????:
????struct platform_device
????{
????const char *name; /*?豸??*/
????intid; /*?豸????????豸?????*/
????struct device dev;
????u32 num_resources;
????struct resource*resource; /*?豸???*/
????}
????struct resource
????{
????resource_size_t start;
????resource_size_t end;
????const char *name;
????unsigned long flags; /*?????????*/
????struct resource *parent?? *sibling?? *child;
????};
????2. ??????豸
????int platform_device_register(struct platform_device*pdev)
??????????????
????1. ?????????structplatform_driver??????
????struct platform_driver
????{
????int(*probe)(struct platform_device*);
????int(*remove)(struct platform_device*);
????……
????}
????2. ????????????
????int platform_driver_register(struct platform_driver*)
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11