0
初学者问:我尝试使用设备编号来获得:注销字符设备
alloc_chrdev_region(&device, 0, 1, "chardev");
,然后驱动程序的停止模块,未登记在其使用
unregister_chrdev_region(MAJOR(device),1);
的“页头”功能后调用时,设备名称在/ proc/device中可见,但在调用上述'unregister'功能之后,该设备在/ proc/devices中仍可见。