static void __exit usb_skel_exit(void)
{
/* deregister this driver with the USB subsystem */
usb_deregister(&skel_driver);
}
module_exit(usb_skel_exit);
/* increment our usage count for the module */MOD_INC_USE_COUNT;++skel->;open_count;/* save our object in the file's private structure */file->;private_data = skel;
/* decrement our usage count for the device */--skel->;open_count;if (skel->;open_count <= 0) { /* shutdown any bulk writes that might be going on */ usb_unlink_urb (skel->;write_urb); skel->;open_count = 0;}/* decrement our usage count for the module */MOD_DEC_USE_COUNT;
Usb 骨架驱动程序,提供足够的例子来帮助初始人员在最短的时间里开发一个驱动程序。更多信息你可以到linux usb开发新闻组去寻找。U盘、USB读卡器、MP3、数码相机驱动对于一款windows下用的很爽的U盘、USB读卡器、MP3或数码相机,可能Linux下却不能支持。怎么办?其实不用伤心,也许经过一点点的工作,你就可以很方便地使用它了。通常是此U盘、USB读卡器、MP3或数码相机在WindowsXP中不需要厂商专门的驱动就可以识别为移动存储设备,这样的设备才能保证成功,其他的就看你的运气了。