第七章心得
摘要:一:首先创建led驱动的设备文件 1.使用cdev_init函数初始化cdev 2.指定设备号 3.使用cdev_add函数将字符设备添加到内核中的字符设备数组中 4.使用class_create宏创建struct_class 5.使用device_create函数创建设备文件 二:卸载LED驱动的
阅读全文
posted @ 2016-06-05 17:23
posted @ 2016-06-05 17:23
posted @ 2016-06-05 17:22
posted @ 2016-06-05 17:20