2018年7月21日

驱动模块(4)——模块编译-Makefile编写

摘要: 1.Kernel中的Makefile将多个文件编译成一个模块 Example1: drivers/usb/core/Makefile:usbcore-y := usb.o hub.o hcd.o urb.o message.o driver.o usbcore-y += config.o file. 阅读全文

posted @ 2018-07-21 14:56 Hello-World3 阅读(465) 评论(0) 推荐(0) 编辑

udev笔记

摘要: 1.udevd的主配置文件是/etc/udev/udev.conf 2.使用udev来监听U的hot-plug事件 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 #include <ctype.h> 5 #inc 阅读全文

posted @ 2018-07-21 12:23 Hello-World3 阅读(226) 评论(0) 推荐(0) 编辑

导航