发布时间:2012-12-16 10:40:18
2.4内核注册驱动要用:int register_chrdev (unsigned int major, const char *name, struct file_operations *fops);2.4内核注销驱动要用:int unregister_chrdev( unsigned int major, const char *name );2.4内核驱动注册完后,要用以下代码创建设备文件 static devfs_handle_t devfs_handle; devfs_handle = devfs_register( NULL, D......【阅读全文】