字符設備驅動開發框架

字符設備開發具有一定的框架 1、模塊驅動的加載與卸載 使用的函數: module_init(xxx_init);//加載xxx_init函數,在串口終端輸入modprobe命令時便會調用該函數,此函數爲入口函數。 static int __init xxx_init(void) module_exit(xxx_exit);//卸載調用xxx_exit函數,在串口終端輸入rmmod命令時,xxx_e
相關文章
相關標籤/搜索