gpio_driver_class = class_create(THIS_MODULE, "firstgpio");
gpio_driver_device = device_create(gpio_driver_class, NULL, MKDEV(major, 0), NULL, "first_gpio");
```两个函数都可以执行成功,
第一句执行后会在/sys/class/下建立对应的类,
第二局device_create不能在/dev下创建设备文件。
通过mdev -s,可以在/dev/下创建设备文件,但是卸载的时候设备文件名是无法卸载的,但是驱动模块已经卸载成功了,
请问这是啥情况?有大神指导一下吗?