註冊字符類設備驅動

      1,申請字符類設備號          (1)alloc_chrdev_region動態          (2)register_chrdev_region靜態   2,註冊字符類設備          (1)kmalloc   爲reg_dev開空間                    清除reg_dev空間數據  清除結構體中.data中數據          (2)cdev_
相關文章
相關標籤/搜索