日期:2014-05-16 浏览次数:20965 次
 1 static int __devexit
 2   dm9000_drv_remove(struct platform_device *pdev)
 3 static int
 4  dm9000_drv_suspend(struct device *dev)
 5 static int
 6  dm9000_drv_resume(struct device *dev)
 7 static int
 8  dm9000_open(struct net_device *dev)
 9 static int
10  dm9000_stop(struct net_device *ndev)
一、卸载驱动
驱动中可以看到,在模块卸载时执行
platform_driver_unregister(&dm9000_driver);
在卸载platform_driver时会执行remove函数,remove函数的功能是把设备从内核中移除,释放内存区域。